continue icon indicating copy to clipboard operation
continue copied to clipboard

Azure OpenAI API not supported for embeddings

Open andrijdavid opened this issue 2 years ago • 2 comments

Before submitting your bug report

Relevant environment info

- OS: Linux X64 6.8.0
- Continue: 0.8.40
- IDE: 1.90.1

Description

Currently, the OpenAIEmbeddingProvider does not support Azure OpenAI Endpoints.

To reproduce

  1. Open the configuration file.
  2. Add the Azure OpenAI Endpoint to the configuration.
  3. Attempt to update the vector database.
  4. Observe the following error message: Error updating the vectordb::text-embedding-3-large index: Error: {"error":{"code":"404","message": "Resource not found"}}

Log output

Error updating the vectordb::text-embedding-3-large index: Error: {"error":{"code":"404","message": "Resource not found"}}

andrijdavid avatar Jun 19 '24 08:06 andrijdavid

I see this issue was fixed in #1517, nevertheless I still see an error message in the config.json because azure is not allowed as per config_schema.json.

I have installed continue via IntelliJ Marketplace. I am on the latest version 0.0.75

The config reference is also not showing that azure is allowed: https://docs.continue.dev/customize/config.

florian-hansen-mw avatar Oct 25 '24 08:10 florian-hansen-mw

I'm also encountering this issue. The Azure tutorial (shown below) in the docs does not work and swapping the provider to OpenAI as a hail-mary does not work. "embeddingsProvider": [{ "provider": "azure", "model": "text-embedding-3-large", "apiBase": "<YOUR_DEPLOYMENT_BASE>", "engine": "<YOUR_ENGINE>", "apiVersion": "<YOUR_API_VERSION>", "apiType": "azure", "apiKey": "<MY_API_KEY>" }]

gketronDS avatar Oct 29 '24 19:10 gketronDS