You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing an issue, I'm able to use in Python the code from the Azure OpenAI sandbox, so my keys and rest of configuration is ok, but when I try to use your samples I got a Invalid Request Error: Resource not found,
Hi,
I'm facing an issue, I'm able to use in Python the code from the Azure OpenAI sandbox, so my keys and rest of configuration is ok, but when I try to use your samples I got a Invalid Request Error: Resource not found,
this is the trace:
InvalidRequestError Traceback (most recent call last)
Cell In[121], line 3
1 max_response_tokens = 500
----> 3 response = send_message(messages, chatgpt_model_name, max_response_tokens)
4 messages.append({"role": "assistant", "content": response})
6 print_conversation(messages)
Cell In[117], line 4, in send_message(messages, model_name, max_response_tokens)
3 def send_message(messages, model_name, max_response_tokens=500):
----> 4 response = openai.ChatCompletion.create(
5 engine=chatgpt_model_name,
6 messages=messages,
7 temperature=0.5,
8 max_tokens=max_response_tokens,
9 top_p=0.9,
10 frequency_penalty=0,
11 presence_penalty=0,
12 )
13 return response['choices'][0]['message']['content']
File /opt/homebrew/lib/python3.10/site-packages/openai/api_resources/chat_completion.py:25, in ChatCompletion.create(cls, *args, **kwargs)
23 while True:
24 try:
---> 25 return super().create(*args, **kwargs)
...
684 rbody, rcode, resp.data, rheaders, stream_error=stream_error
685 )
686 return resp
InvalidRequestError: Resource not found
Regards.
The text was updated successfully, but these errors were encountered: