gpt4free/g4f/Provider/needs_auth/GithubCopilotAPI.py
hlohaus 6052775fdf Refactor API base URL references across providers
- Changed `api_base` to `base_url` in multiple provider files for consistency.
- Updated method signatures and internal references to use `base_url` instead of `api_base`.
- Adjusted the `OpenaiTemplate` class to accommodate the new `base_url` parameter.
- Enhanced the `ClientFactory` to support custom provider creation with `base_url`.
- Modified API request handling in the backend to align with the new naming convention.
2025-12-25 22:09:20 +01:00

12 lines
353 B
Python

from __future__ import annotations
from .OpenaiAPI import OpenaiAPI
class GithubCopilotAPI(OpenaiAPI):
label = "GitHub Copilot API"
url = "https://github.com/copilot"
login_url = "https://aider.chat/docs/llms/github.html"
working = True
base_url = "https://api.githubcopilot.com"
needs_auth = True
models_needs_auth = True