-
Notifications
You must be signed in to change notification settings - Fork 917
Open
Description
我的LLM_CONFIG如下:
LLM_CONFIG = {
'model': 'o4-mini',
'api_key': xxxxxxxxxxxxxxxxx,
'azure_endpoint': https://xxxxxxxxxx.openai.azure.com/, # Azure endpoint
'api_version': 2025-01-01,
'generate_cfg': {
'temperature': 0.6,
'top_p': 0.9,
'max_tokens': 16384
}
}
但是报错:qwen_agent.llm.base.ModelServiceError: Error code: 400 - {'error': {'code': 'BadRequest', 'message': 'Model o4-mini is enabled only for api versions 2024-12-01-preview and later'}}
可我明明设置了'api_version': 2025-01-01' 感觉好像参数都没传进去?
但是我换用gpt-4.1就可以运行,但是运行的也不正确,不能自主调用工具。
看了源代码azure.py感觉自己config写的没问题。
希望能给出一个正确的调用Azure OpenAI的示例,或者LLM配置的说明文档。
Metadata
Metadata
Assignees
Labels
No labels