mirror of
https://github.com/escalante29/WealthySmart.git
synced 2026-07-17 12:48:47 +02:00
15 lines
438 B
Python
15 lines
438 B
Python
"""Assistant transport configuration."""
|
|
|
|
from agent_framework.openai import OpenAIChatClient
|
|
|
|
from app.agent import agent as agent_module
|
|
|
|
|
|
def test_agent_uses_responses_client_for_the_configured_model(monkeypatch):
|
|
monkeypatch.setattr(agent_module.settings, "AGENT_MODEL", "gpt-5.6-luna")
|
|
|
|
agent = agent_module.build_agent()
|
|
|
|
assert isinstance(agent.client, OpenAIChatClient)
|
|
assert agent.client.model == "gpt-5.6-luna"
|