Skip to content

Commit

Permalink
Fix system prompt when caching if no system prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudotensor committed Nov 2, 2024
1 parent 2f283d0 commit 150b86b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gpt_langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -2870,7 +2870,7 @@ def _get_request_payload(
"type": "text",
"text": system,
"cache_control": {"type": "ephemeral"}
}] if system else None
}] if system else ''

# Process user and assistant messages
messages_cached = self.process_messages(messages)
Expand Down
2 changes: 1 addition & 1 deletion src/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "16a758f7196ba5d094436c7c508a9694663fcfd5"
__version__ = "2f283d091366111f2e004effefbe966b4b1fa006"

0 comments on commit 150b86b

Please sign in to comment.