Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error connecting to Azure OpenAI API #1418

Closed
he-aook opened this issue Apr 28, 2024 · 9 comments
Closed

Error connecting to Azure OpenAI API #1418

he-aook opened this issue Apr 28, 2024 · 9 comments
Labels
question Further information is requested

Comments

@he-aook
Copy link

he-aook commented Apr 28, 2024

Describe your question

配置文件按照官方提示文档配置了, 怎么配置都是连接不上

我这边配置好连接地址后, 查看微软的地址资源都是有预留的, 但是怎么启动对话,都是卡这不动了;
image

@he-aook he-aook added the question Further information is requested label Apr 28, 2024
@li-boxuan
Copy link
Collaborator

Could you please provide your configurations?

@he-aook
Copy link
Author

he-aook commented Apr 28, 2024

@li-boxuan #1418 (comment)
image
image
image
以下是日志信息:
刚启动日志:
14:05:28 - opendevin:INFO: session.py:39 - WebSocket disconnected, sid: d61d12ed-6def-4d78-89e7-ffad6b93225d
INFO: connection closed
14:05:46 - opendevin:INFO: agent.py:144 - Creating agent MonologueAgent using LLM azure/gpt-4
14:05:46 - opendevin:INFO: llm.py:51 - Initializing LLM with model: azure/gpt-4
14:05:57 - opendevin:INFO: exec_box.py:221 - Container stopped
14:05:57 - opendevin:INFO: exec_box.py:239 - Container started
运行报错日志:
^^^^^^^^^^^^^^
return self._request(
File "/root/.cache/pypoetry/virtualenvs/opendevin-QzKVoApH-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1012, in _request
^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/opendevin-QzKVoApH-py3.11/lib/python3.11/site-packages/openai/_base_client.py", line 1012, in _request
raise self._make_status_error_from_response(err.response) from None
openai.NotFoundError: Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}
raise self._make_status_error_from_response(err.response) from None
openai.NotFoundError: Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}

@li-boxuan
Copy link
Collaborator

@enyst Do you have any idea on this one? IIRC you attempted to test Azure OpenAI model.

@enyst
Copy link
Collaborator

enyst commented Apr 28, 2024

LLM_MODEL=azure/gpt4-test-ncus-0125

I think the model name needs to be the name of the deployment defined in the Azure account corresponding to the chat model, e.g. to GPT-4.

This is probably the right name, but it seems that it's not sent as such:

opendevin:INFO: llm.py:51 - Initializing LLM with model: azure/gpt-4

I would suggest to enter azure/gpt4-test-ncus-0125 in the UI settings, the deployment of the chat model as it is defined in the Azure account, even if it's not in the predefined list of models in the UI. I believe the UI allows saving a custom name.

@he-aook
Copy link
Author

he-aook commented Apr 29, 2024

@enyst 嗯嗯。#1418 (comment)

@he-aook
Copy link
Author

he-aook commented Apr 30, 2024

@li-boxuan 这也并没有实际解决问题呢, 就关闭了

@li-boxuan
Copy link
Collaborator

@he-aook From your response I thought @enyst 's advice solved your problem. If that's not the case, feel free to reopen the issue, but please comment in English.

@li-boxuan li-boxuan changed the title 微软的模型API是不支持吗? Error connecting to Azure OpenAI API Apr 30, 2024
@he-aook
Copy link
Author

he-aook commented Apr 30, 2024

@li-boxuan

My English is very poor, I don't even know how to say it

@li-boxuan
Copy link
Collaborator

li-boxuan commented May 1, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants