mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 09:04:36 +00:00
AutoGuess: GLM-4 (#1502)
* AutoGuess: GLM-4 * add 'chat_start' field to adapters * GLM-4 fix
This commit is contained in:
parent
35dc8387e9
commit
7cb815b727
2 changed files with 4 additions and 3 deletions
|
@ -2049,7 +2049,7 @@ def transform_genparams(genparams, api_format):
|
|||
if api_format==4 or api_format==7: #handle ollama chat here too
|
||||
# translate openai chat completion messages format into one big string.
|
||||
messages_array = genparams.get('messages', [])
|
||||
messages_string = ""
|
||||
messages_string = adapter_obj.get("chat_start", "")
|
||||
system_message_start = adapter_obj.get("system_start", "\n### Instruction:\n")
|
||||
system_message_end = adapter_obj.get("system_end", "")
|
||||
user_message_start = adapter_obj.get("user_start", "\n### Instruction:\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue