mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-13 08:52:02 +00:00
fix: preserve provider sampling and deployment isolation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
95a0b7d7a6
commit
9b5b3012c9
2 changed files with 3 additions and 0 deletions
|
|
@ -98,6 +98,8 @@ class AzureOpenAIResponsesAPIConfig(OpenAIResponsesAPIConfig):
|
|||
return LlmProviders.AZURE
|
||||
|
||||
def _sampling_params_allowed(self, model: str, effort: str | None) -> bool:
|
||||
if self.custom_llm_provider != LlmProviders.AZURE:
|
||||
return super()._sampling_params_allowed(model, effort)
|
||||
return AzureOpenAIGPT5Config.sampling_params_allowed(
|
||||
model, effort, fallback_allowed=not self._is_gpt_5_model(model)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4302,6 +4302,7 @@ DEPLOYMENT_SCOPED_CAPABILITY_FIELDS: Final[frozenset[str]] = frozenset(
|
|||
{
|
||||
"supports_regex_lookaround",
|
||||
"supports_assistant_prefill",
|
||||
"supports_sampling_params",
|
||||
"supports_bedrock_native_structured_output",
|
||||
"supports_per_turn_control",
|
||||
"supports_pdf_input",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue