mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
fix declaration order
This commit is contained in:
parent
d71b5477c5
commit
e2e6d892b4
1 changed files with 1 additions and 1 deletions
|
@ -1206,6 +1206,7 @@ def extract_json_from_string(input_string):
|
|||
return []
|
||||
|
||||
def transform_genparams(genparams, api_format):
|
||||
global chatcompl_adapter
|
||||
#api format 1=basic,2=kai,3=oai,4=oai-chat,5=interrogate
|
||||
#alias all nonstandard alternative names for rep pen.
|
||||
rp1 = genparams.get('repeat_penalty', 1.0)
|
||||
|
@ -1348,7 +1349,6 @@ ws ::= | " " | "\n" [ \t]{0,20}
|
|||
|
||||
|
||||
elif api_format==5:
|
||||
global chatcompl_adapter
|
||||
firstimg = genparams.get('image', "")
|
||||
genparams["images"] = [firstimg]
|
||||
genparams["max_length"] = 42
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue