Describe the bug After specifying Azure OpenAI API version 2023-06-01-preview or later for stream requests, an error occurs due to an unexpected empty choices array in the stream response. This issue is specific to Azure OpenAI and relat...
I have deployed a gpt-4-turbo-2024-04-09 model in Azure OpenAI Service and am constructing the payload with the logprobs parameter as True. But in the response, the logprobs are absent. But according to the following documentation, it should be available with the 2024-06-01...
目前,Azure OpenAI API 版本2024-10-21是最新的 GA API 版本。 此 API 版本替代了以前的2024-06-01GA API 版本。 更新API 版本 建议先测试新 API 版本的升级,在环境中进行全局更改之前,确认 API 更新不会对应用程序产生任何影响。 如果使用 OpenAI Python/JavaScript 客户端库或 REST API,则需要将代码直接更...
WARNING:langchain.embeddings.openai:Warning: model not found. Using cl100k_base encoding. 67%|██████▋ | 2/3 [00:00<00:00, 5.00it/s]INFO:openai:error_code=429 error_message='Requests to the Embeddings_Create Operation under Azure OpenAI API version 2023-07-01-preview have exceeded...
Agents.OpenAI Microsoft.SemanticKernel.AudioToText Microsoft.SemanticKernel.ChatCompletion Microsoft.SemanticKernel.Connectors.AzureAISearch Microsoft.SemanticKernel.Connectors.AzureCosmosDBMongoDB Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL Microsoft.SemanticKernel.Connectors...
openai.NotFoundError: Error code: 404 - {'error': {'message': 'Unrecognized request argument supplied: functions', 'type': 'invalid_request_error', 'param': None, 'code': None}} Python importosimport jsonfrom openaiimportAzureOpenAIclient = AzureOpenAI( azure_endpoint="https://neyahop...
# gets the API Key from environment variable AZURE_OPENAI_API_KEY client = AzureOpenAI( # https://learn.microsoft.com/azure/ai-services/openai/reference#rest-api-versioning api_version="2023-07-01-preview", # https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource?
options.azureApiVersion || "2024-08-01-preview", }) } else { this.client = new OpenAI({ 6 changes: 6 additions & 0 deletions 6 src/providers/ClaudeDevProvider.ts Original file line numberDiff line numberDiff line change @@ -44,6 +44,7 @@ type GlobalStateKey = | "ollamaModelId...
38 "An API version is required for the Azure API type." 39 ) 40 if engine is None: 41 raise error.InvalidRequestError( 42 "You must provide the deployment name in the 'engine' parameter to access the Azure OpenAI service" 43 ) ...
src\api\providers\openai.ts For example, endpoint = "https://models.inference.ai.azure.com" is using new OpenAI, but due to this.options.openAiBaseUrl?.toLowerCase().includes("azure.com"), it mistakenly uses new AzureOpenAI. I hope this condition can be fixed. ...