mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-26 01:12:21 +00:00
fix(interactions): remove steps field not in google openapi spec
The steps field was added but is not present in the current Google Interactions OpenAPI specification. Revert to using only the fields that are actually defined in the spec.
This commit is contained in:
parent
3753970cc9
commit
3990165b26
2 changed files with 1 additions and 6 deletions
|
|
@ -1203,7 +1203,6 @@ class InteractionsAPIResponse(BaseLiteLLMOpenAIResponseObject):
|
|||
created: Optional[str] = None
|
||||
updated: Optional[str] = None
|
||||
role: Optional[str] = None
|
||||
steps: Optional[List[Dict[str, Any]]] = None
|
||||
outputs: Optional[List[Dict[str, Any]]] = None
|
||||
usage: Optional[Dict[str, Any]] = None
|
||||
|
||||
|
|
@ -1229,7 +1228,6 @@ class InteractionsAPIStreamingResponse(BaseLiteLLMOpenAIResponseObject):
|
|||
created: Optional[str] = None
|
||||
updated: Optional[str] = None
|
||||
role: Optional[str] = None
|
||||
steps: Optional[List[Dict[str, Any]]] = None
|
||||
outputs: Optional[List[Dict[str, Any]]] = None
|
||||
usage: Optional[Dict[str, Any]] = None
|
||||
delta: Optional[Dict[str, Any]] = None
|
||||
|
|
|
|||
|
|
@ -157,16 +157,13 @@ class TestResponseCompliance:
|
|||
# Check CreateModelInteractionParams which includes output fields
|
||||
schema = spec_dict["components"]["schemas"]["CreateModelInteractionParams"]
|
||||
|
||||
# Output fields (readOnly). Google's current OpenAPI response payload
|
||||
# exposes content through `steps`; LiteLLM keeps `outputs` only as a
|
||||
# compatibility response field.
|
||||
# Output fields (readOnly)
|
||||
output_fields = [
|
||||
"id",
|
||||
"status",
|
||||
"created",
|
||||
"updated",
|
||||
"role",
|
||||
"steps",
|
||||
"usage",
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue