(feat) add Predicted Outputs for OpenAI (#6594)

* bump openai to openai==1.54.0

* add 'prediction' param

* testing fix bedrock deprecated cohere.command-text-v14

* test test_openai_prediction_param.py

* test_openai_prediction_param_with_caching

* doc Predicted Outputs

* doc Predicted Output
This commit is contained in:
Ishaan Jaff 2024-11-05 10:46:57 +05:30 committed by GitHub
parent 57b1bb5e06
commit c047d51cc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 362 additions and 13 deletions

View file

@ -2550,6 +2550,7 @@ def get_optional_params( # noqa: PLR0915
max_tokens=None,
max_completion_tokens=None,
modalities=None,
prediction=None,
audio=None,
presence_penalty=None,
frequency_penalty=None,
@ -2631,6 +2632,7 @@ def get_optional_params( # noqa: PLR0915
"max_tokens": None,
"max_completion_tokens": None,
"modalities": None,
"prediction": None,
"audio": None,
"presence_penalty": None,
"frequency_penalty": None,