-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. gptel--trim-prefixes returns nil whenever a string is empty after trimming (for blank strings or prompt-only strings, this will occur) 2. all models check for a non-nil after-trimming string before appending messages to their parts 3. all models trim the whole buffer using simple string-trim when response tracking is off 4. zero-length multi-part vectors are also skipped Squashed: Trim prefixes to nil Also fixes the edge case where a prefix includes whitespace. Whitespace removal is added to each literal prefix, so the literals need to be trimmed of whitespace. * gptel-anthropic.el: * gptel-gemini.el: * gptel-ollama.el: * gptel-openai.el: * gptel.el:
- Loading branch information
Showing
5 changed files
with
70 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters