Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeMalcolm committed Nov 9, 2023
1 parent 20f6d4a commit 28d2af2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Labfiles/06-use-own-data/Python/ownData.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 28d2af2

Please sign in to comment.