We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a27b3b commit 5ae974bCopy full SHA for 5ae974b
tests/test_api_endpoint_config.py
@@ -43,5 +43,13 @@ def test_api_endpoint_env_override(self):
43
if original_env:
44
os.environ['AI_API_ENDPOINT'] = original_env
45
46
+ def test_to_url_models_github(self):
47
+ endpoint = AI_API_ENDPOINT_ENUM.AI_API_MODELS_GITHUB
48
+ assert endpoint.to_url() == 'https://models.github.ai/inference'
49
+
50
+ def test_to_url_githubcopilot(self):
51
+ endpoint = AI_API_ENDPOINT_ENUM.AI_API_GITHUBCOPILOT
52
+ assert endpoint.to_url() == 'https://api.githubcopilot.com'
53
54
if __name__ == '__main__':
55
pytest.main([__file__, '-v'])
0 commit comments