Azure / Azure/azure-rest-api-specs

[Azure OpenAI Service] Latest api version only returns choices content in english

Open
#26,229 0 comments 0 reactions 0 assignees View on GitHub
customer-reported OpenAI question Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

Hello all, I've implementing Azure Open AI with Azure cognitive search, all the information that is indexed in cognitive is in spanish, however after finish the integration bewteen Azure OpenAI and the search service all the responses are in english (no matter the indexed content is in spanish) and all the prompts made are in spanish also.

I'm consuming the following endpoint: **https://.openai.azure.com/openai/deployments//extensions/chat/completions?api-version=2023-08-01-preview**

I'm using api version: *2023-08-01-preview* however if I try with an older version (version: *2023-06-01-preview*) the answer is in spanish (according to the language used in the prompt).

This is an expected bevaviour?

Note: If the prompt contains something like "respond in spanish" the openai service answer in spanish, but I do not think this is a right approach to take because it increase the token's lenght and it's a hardcode solution.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Spanish prompt and indexed Azure Cognitive Search content against the 2023-08-01-preview and 2023-06-01-preview extensions/chat/completions endpoints. Compare the responses and determine whether the language difference is expected; document the finding or identify the API specification change needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
api, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.