mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
refactor(together_ai): build the trimmed supported-params list without mutating the inherited list
This commit is contained in:
parent
62ec3b6116
commit
32ebfba5ed
1 changed files with 3 additions and 4 deletions
|
|
@ -30,10 +30,9 @@ class TogetherAIChatConfig(OpenAIGPTConfig):
|
|||
verbose_logger.debug(
|
||||
"Only some together models support function calling/response_format. Docs - https://docs.together.ai/docs/function-calling"
|
||||
)
|
||||
for param in FUNCTION_CALLING_ONLY_PARAMS:
|
||||
if param in supported_params:
|
||||
supported_params.remove(param)
|
||||
return supported_params
|
||||
return [ # mutable-ok: the inherited contract returns a plain list; building fresh avoids mutating the base class's value
|
||||
param for param in supported_params if param not in FUNCTION_CALLING_ONLY_PARAMS
|
||||
]
|
||||
|
||||
def map_openai_params(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue