AGI2406期 基于AutoGen实现多智能体对话机器人 openai安装成功,调用报错 #705
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HswOAuth/llm_course#705
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
941 client = create_openai_client()
943 if logging_enabled():
944 log_new_client(client, self, openai_config)
File ~/miniconda3/lib/python3.10/site-packages/autogen/oai/client.py:937, in OpenAIWrapper._register_default_client..create_openai_client()
935 @require_optional_import("openai>=1.66.2", "openai")
936 def create_openai_client() -> "OpenAI":
--> 937 client = OpenAI(**openai_config)
938 self._clients.append(OpenAIClient(client, response_format))
939 return client
NameError: name 'OpenAI' is not defined