formatting
This commit is contained in:
parent
1e81a1bd7c
commit
d92092f040
@ -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)
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -28,7 +28,6 @@ class GithubCopilotError(BaseLLMException):
|
||||
)
|
||||
|
||||
|
||||
|
||||
class GetDeviceCodeError(GithubCopilotError):
|
||||
pass
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user