Connect via api to our Azure Open AI deployments, we get generic chat GPT rather than our data we have loaded

Gary Stewart 20 Reputation points
2024-03-25T17:06:38.91+00:00

When we connect via api to our Azure OpenIA deployments, we get generic chat GPT rather than our data we have loaded, as per the chat interface provided by microsoft. The code we used was:

curl "https://nexus-openai-dev.openai.azure.com/openai/deployments/api-nexus-fish/chat/completions?api-version=2023-10-01-preview" \   -H "Content-Type: application/json" \   -H "api-key: xxxxxxOurKey" \   -d "{   "messages": [{"role":"system","content":"You are an AI assistant that helps people find information."},{"role":"user","content":"when can I catch ormers"}],   "max_tokens": 100,   "temperature": 1,   "frequency_penalty": 0,   "presence_penalty": 0,   "top_p": 0.5,   "stop": null }"

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,081 questions
0 comments No comments
{count} votes

Accepted answer
  1. AshokPeddakotla-MSFT 35,971 Reputation points Moderator
    2024-03-26T03:04:10.1033333+00:00

    Gary Stewart Greetings!

    I'm glad that your issue is resolved and thank you for posting your solution so that others experiencing the same thing can easily reference this!

    Since the Microsoft Q&A community has a policy that the question author cannot accept their own answer, they can only accept answers by others, I'll repost your solution in case you'd like to Accept the answer.

    Error Message:

    When we connect via api to our Azure OpenIA deployments, we get generic chat GPT rather than our data we have loaded, as per the chat interface provided by microsoft. The code we used was:

    curl "https://nexus-openai-dev.openai.azure.com/openai/deployments/api-nexus-fish/chat/completions?api-version=2023-10-01-preview" \   -H "Content-Type: application/json" \   -H "api-key: xxxxxxOurKey" \   -d "{   "messages": [{"role":"system","content":"You are an AI assistant that helps people find information."},{"role":"user","content":"when can I catch ormers"}],   "max_tokens": 100,   "temperature": 1,   "frequency_penalty": 0,   "presence_penalty": 0,   "top_p": 0.5,   "stop": null }"

    Solution:

    Have solved the problem, found the extra config settings in the sample code in chat plaground. Where you point to the index.

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Gary Stewart 20 Reputation points
    2024-03-25T17:22:38.5266667+00:00

    Have solved the problem, found the extra config settings in the sample code in chat plaground. Where you point to the index.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.