MCPcopy Create free account
hub / github.com/CopilotKit/OpenGenerativeUI / test_llm_model_env_override

Function test_llm_model_env_override

apps/agent/tests/test_model.py:23–26  ·  view source on GitHub ↗
(monkeypatch: pytest.MonkeyPatch)

Source from the content-addressed store, hash-verified

21
22
23def test_llm_model_env_override(monkeypatch: pytest.MonkeyPatch):
24 monkeypatch.setenv("LLM_MODEL", "claude-opus-4-6")
25 model = build_model()
26 assert model.model == "claude-opus-4-6"
27
28
29def test_gpt_model_names_route_to_openai_fallback(monkeypatch: pytest.MonkeyPatch):

Callers

nothing calls this directly

Calls 1

build_modelFunction · 0.90

Tested by

no test coverage detected