Closed arananet closed 12 months ago
+1
A quick fix works for me, This is modified from auto-gpt release v0.4.0, Using azure_api_version=2023-03-15-preview.
Fix null model value if give deployment_id, at line 52 autogpt\llm\api_manager.py:
Add azure model name, at line 2 autogpt\llm\modelsinfo.py:
This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.
This issue was closed automatically because it has been stale for 10 days with no activity.
⚠️ Search for existing issues first ⚠️
Which Operating System are you using?
MacOS
Which version of Auto-GPT are you using?
Stable (branch)
Do you use OpenAI GPT-3 or GPT-4?
GPT-4
Which area covers your issue best?
Prompt
Describe your issue.
If you are using Azure OpenAI service with this particular configuration:
.env:
OPENAI_API_KEY=xxxx TEMPERATURE=0.1 USE_AZURE=True
SMART_LLM_MODEL=gpt-4
FAST_LLM_MODEL=gpt-3.5-turbo
azure.yaml:
azure_api_type: azure azure_api_base: https://xxxx.openai.azure.com/ azure_api_version: 2023-03-15-preview azure_model_map: fast_llm_model_deployment_id: ChatGPT smart_llm_model_deployment_id: GPT4 embedding_model_deployment_id: text-embedding-ada-002
You will receive this error:
File "/Auto-GPT-0.4.0/autogpt/llm/api_manager.py", line 85, in update_cost model = model[:-3] if model.endswith("-v2") else model
AttributeError: 'NoneType' object has no attribute 'endswith'
A possible workaround:
Hope it helps.
Upload Activity Log Content
No response
Upload Error Log Content
No response