formatting

This commit is contained in:
Tim Elfrink 2025-08-17 17:26:59 +02:00
parent 1e81a1bd7c
commit d92092f040
3 changed files with 6 additions and 8 deletions

View File

@ -266,10 +266,9 @@ def get_supported_openai_params( # noqa: PLR0915
from litellm.llms.elevenlabs.audio_transcription.transformation import (
ElevenLabsAudioTranscriptionConfig,
)
return (
ElevenLabsAudioTranscriptionConfig().get_supported_openai_params(
model=model
)
return ElevenLabsAudioTranscriptionConfig().get_supported_openai_params(
model=model
)
elif custom_llm_provider == "github_copilot":
return litellm.GithubCopilotConfig().get_supported_openai_params(model=model)

View File

@ -80,17 +80,17 @@ class GithubCopilotConfig(OpenAIConfig):
def get_supported_openai_params(self, model: str) -> list:
"""
Get supported OpenAI parameters for GitHub Copilot.
For Anthropic models (like claude-sonnet-4), includes thinking and reasoning parameters.
For other models, returns standard OpenAI parameters.
"""
# Get base OpenAI parameters
base_params = super().get_supported_openai_params(model)
# Add thinking and reasoning parameters for Anthropic Claude models
if "claude" in model.lower():
base_params.extend(["thinking", "reasoning_effort"])
return base_params
def _determine_initiator(self, messages: List[AllMessageValues]) -> str:

View File

@ -28,7 +28,6 @@ class GithubCopilotError(BaseLLMException):
)
class GetDeviceCodeError(GithubCopilotError):
pass