quiz fixed
This commit is contained in:
+5
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user