mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-09 23:12:38 +00:00
feat(openai): officially support verbosity
(#32470)
This commit is contained in:
@@ -3599,6 +3599,13 @@ def _construct_responses_api_payload(
|
||||
}
|
||||
else:
|
||||
pass
|
||||
|
||||
verbosity = payload.pop("verbosity", None)
|
||||
if verbosity is not None:
|
||||
if "text" not in payload:
|
||||
payload["text"] = {"format": {"type": "text"}}
|
||||
payload["text"]["verbosity"] = verbosity
|
||||
|
||||
return payload
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user