From 28d2af219da4de497f848bd328d44e166b98f624 Mon Sep 17 00:00:00 2001 From: Graeme Malcolm Date: Thu, 9 Nov 2023 13:21:26 -0500 Subject: [PATCH] Minor update --- Labfiles/06-use-own-data/Python/ownData.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Labfiles/06-use-own-data/Python/ownData.py b/Labfiles/06-use-own-data/Python/ownData.py index 3a0d3083..ed215091 100644 --- a/Labfiles/06-use-own-data/Python/ownData.py +++ b/Labfiles/06-use-own-data/Python/ownData.py @@ -58,10 +58,11 @@ def main(): print("Response: " + response.choices[0].message.content + "\n") # print data context - print("\nContext information:\n") #, response.choices[0].message.context) + print("\nContext information:\n") context = response.choices[0].message.context for context_message in context["messages"]: - print(json.loads(context_message["content"])) + context_json = json.loads(context_message["content"]) + print(json.dumps(context_json, indent=2)) except Exception as ex: print(ex)