mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
Fix API base url for Github Copilot provider (#12418)
This commit is contained in:
parent
3cb45ccb6a
commit
559d06a55c
2 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ from ..common_utils import GetAPIKeyError
|
|||
|
||||
|
||||
class GithubCopilotConfig(OpenAIConfig):
|
||||
GITHUB_COPILOT_API_BASE = "https://api.github.com/copilot/v1"
|
||||
GITHUB_COPILOT_API_BASE = "https://api.githubcopilot.com/"
|
||||
def __init__(
|
||||
self,
|
||||
api_key: Optional[str] = None,
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ def test_github_copilot_config_get_openai_compatible_provider_info():
|
|||
custom_llm_provider="github_copilot",
|
||||
)
|
||||
|
||||
assert api_base == "https://api.github.com/copilot/v1"
|
||||
assert api_base == "https://api.githubcopilot.com/"
|
||||
assert dynamic_api_key == mock_api_key
|
||||
assert custom_llm_provider == "github_copilot"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue