Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def postprocess_message_text(api_response):
|
|
53 |
str: Formatted message content.
|
54 |
"""
|
55 |
# Convert api_response to dictionary
|
56 |
-
response_dict =
|
57 |
|
58 |
# Extract the content from the choices
|
59 |
message_content = response_dict["choices"][0]["message"]["content"]
|
|
|
53 |
str: Formatted message content.
|
54 |
"""
|
55 |
# Convert api_response to dictionary
|
56 |
+
response_dict = api_response.model_dump()
|
57 |
|
58 |
# Extract the content from the choices
|
59 |
message_content = response_dict["choices"][0]["message"]["content"]
|