quiz fixed

This commit is contained in:
2025-02-12 19:25:12 +00:00
parent d1ed8b9e3f
commit 35a099112b
4 changed files with 261 additions and 10 deletions
+5 -1
View File
@@ -70,7 +70,11 @@ def fetch_conversation_history(conversation_id: str) -> List[Message]:
response = requests.get(url)
response.raise_for_status() # Raise an error for bad responses
data = response.json()["data"] # First JSON parse
data = json.loads(json.loads(data))
print(data)
#
data = json.loads(data)
print(f"Data {data}")
print(f"Type: {type(data)}")
# Parse the API response into Message objects
messages = []
for item in data: