continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
17.47k stars 1.35k forks source link

support for Azure ML endpoints #1072

Open visagansanthanam-unisys opened 6 months ago

visagansanthanam-unisys commented 6 months ago

Before submitting your bug report

Relevant environment info

- OS: Windows
- Continue: v0.8.22
- IDE:VS Code

Description

I am looking into integrating the LLM models hosted in Azure ML studio. However, i could not find the provider configuration for Azure ML Studio. I tried changing the Azure OpenAI configuration and replacing the Azure ML Endpoint, however, it doesn't work.

image

To reproduce

Open config.json configure Azure ML Studio endpoint, specify provider as "openai" Try to do a chat testing.

Log output

notificationsAlerts.ts:42 HTTP 424 Failed Dependency from https://visagan-continue-poc-heati.eastus2.inference.ml.azure.com/openai/deployments/codellama-7b-python-hf-6/chat/completions?api-version=2023-07-01-preview  {"detail":"Not Found"}
sestinj commented 6 months ago

@visagansanthanam-unisys we have a bit of extra documentation here about how to setup with Azure OpenAI Service. Let me know if that doesn't end up being the solution to your problem and I'll take a look right away!

In either case, we can look at how documentation/setup experience might be improved

visagansanthanam-unisys commented 6 months ago

@sestinj I am trying to connect self-hosted models like llama, starcoder in Azure ML Studio and connect to Continue plugin. Do we have a provider for open-source models hosted in Azure ML Studio?

sestinj commented 5 months ago

@visagansanthanam-unisys I believe that models deployed via Azure ML Studio all have different input formats, which means there is no good way for us to have built-in support, though it is possible to build a CustomLLM using config.ts.

Are there constraints that led you to choose Azure ML Studio over other options which might more easily be integrated?