Fix API base url for Github Copilot provider (#12418)
This commit is contained in:
parent
3cb45ccb6a
commit
559d06a55c
@ -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…
Reference in New Issue
Block a user