mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
@@ -12,7 +12,7 @@ from autogen_core.models import ChatCompletionClient
|
||||
|
||||
def create_ai_player() -> AssistantAgent:
|
||||
# Load the model client from config.
|
||||
with open("model_config.yml", "r") as f:
|
||||
with open("model_config.yaml", "r") as f:
|
||||
model_config = yaml.safe_load(f)
|
||||
model_client = ChatCompletionClient.load_component(model_config)
|
||||
# Create an agent that can use the model client.
|
||||
|
||||
Reference in New Issue
Block a user