@@ -33,17 +33,17 @@ async def test_github_models_configuration(monkeypatch):
33
33
monkeypatch .setenv ("OPENAI_EMBED_HOST" , "github" )
34
34
monkeypatch .setenv ("GITHUB_TOKEN" , "fake-token" )
35
35
# Don't set GITHUB_MODEL to test defaults
36
-
36
+
37
37
# Test chat client configuration
38
38
chat_client = await create_openai_chat_client (None )
39
39
assert str (chat_client .base_url ).rstrip ("/" ) == "https://models.github.ai/inference"
40
40
assert chat_client .api_key == "fake-token"
41
-
42
- # Test embed client configuration
41
+
42
+ # Test embed client configuration
43
43
embed_client = await create_openai_embed_client (None )
44
44
assert str (embed_client .base_url ).rstrip ("/" ) == "https://models.github.ai/inference"
45
45
assert embed_client .api_key == "fake-token"
46
-
46
+
47
47
# Test that dependencies use correct defaults
48
48
context = await common_parameters ()
49
49
assert context .openai_chat_model == "openai/gpt-4o"
@@ -59,7 +59,7 @@ async def test_github_models_with_custom_values(monkeypatch):
59
59
monkeypatch .setenv ("GITHUB_TOKEN" , "fake-token" )
60
60
monkeypatch .setenv ("GITHUB_MODEL" , "openai/gpt-4" )
61
61
monkeypatch .setenv ("GITHUB_EMBED_MODEL" , "openai/text-embedding-ada-002" )
62
-
62
+
63
63
# Test that dependencies use custom values
64
64
context = await common_parameters ()
65
65
assert context .openai_chat_model == "openai/gpt-4"
0 commit comments