Update server-chat.cpp#2356
Open
Kontomoka5932 wants to merge 1 commit into
Open
Conversation
Owner
|
Should be fixed in the latest rolling build, can you try https://github.com/LostRuins/koboldcpp/releases/tag/rolling |
Owner
|
server-chat.cpp will do nothing, it's not used in koboldcpp |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I am using:
koboldcpp-1.117.1
gemma-4-26B-A4B
http://localhost:5001/v1/chat/completions
When asking to output ONLY A NUMBER, for example 123, I get an error in the koboldcpp console:
...
Processing Prompt [BATCH] (471 / 471 tokens)
Generating (4 / 1024 tokens)
(EOS token triggered! ID:106)
[23:13:28] CtxLimit:2361/73728, Init:0.08s, Processed:471 in 1.27s (369.99T/s),
Generated:4/1024 in 0.26s (15.44T/s), Total:1.61s
Output: 123
argument of type 'int' is not iterable
...
I think the error is in the server-chat.cpp file at line 53:
{"text", item.at("content")},
The AI suggests replacing it with the following line:
{"text", item.at("content").is_string() ? item.at("content") : item.at("content").dump()},