enh: reasoning_effort param support for openai

This commit is contained in:
Timothy Jaeryang Baek
2025-01-22 12:07:04 -08:00
parent ea7d4ec6ea
commit aaf97b85dc
3 changed files with 48 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ def apply_model_params_to_body_openai(params: dict, form_data: dict) -> dict:
"top_p": float,
"max_tokens": int,
"frequency_penalty": float,
"reasoning_effort": str,
"seed": lambda x: x,
"stop": lambda x: [bytes(s, "utf-8").decode("unicode_escape") for s in x],
}