Skip to content

Commit

Permalink
Encode URL queries
Browse files Browse the repository at this point in the history
  • Loading branch information
KillianLucas committed Aug 11, 2023
1 parent f57f52e commit 0c724d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interpreter/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def get_info_for_system_message(self):
# Open Procedures is an open-source database of tiny, structured coding tutorials.
# We can query it semantically and append relevant tutorials/procedures to our system message:

# Embed and truncate the last two messages
# Encode and truncate the last two messages
query = str(self.messages[-2:])
query = urllib.parse.quote(query)
query = query[-2000:]
Expand Down

0 comments on commit 0c724d8

Please sign in to comment.