Skip to content

Commit

Permalink
fix: fix typo in the response format for the POST SSE
Browse files Browse the repository at this point in the history
  • Loading branch information
cpacker committed Nov 14, 2024
1 parent b7f2d14 commit effb7b2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions letta/server/rest_api/routers/v1/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,14 @@ def update_message(
200: {
"description": "Successful response",
"content": {
"application/json": {"$ref": "#/components/schemas/LettaResponse"}, # Use model_json_schema() instead of model directly
"text/event-stream": {"description": "Server-Sent Events stream"},
"application/json": {
"schema": {
"$ref": "#/components/schemas/LettaResponse",
},
},
"text/event-stream": {
"description": "Server-Sent Events stream",
},
},
}
},
Expand Down

0 comments on commit effb7b2

Please sign in to comment.