Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -52,8 +52,10 @@ def completion(history, model, system_prompt, tools=None):
|
|
52 |
"stream": False,
|
53 |
"max_tokens": 1000,
|
54 |
"temperature": 0.4,
|
55 |
-
"frequency_penalty":
|
56 |
-
"
|
|
|
|
|
57 |
}
|
58 |
if tools:
|
59 |
request_params.update({"tool_choice": "auto", "tools": tools})
|
|
|
52 |
"stream": False,
|
53 |
"max_tokens": 1000,
|
54 |
"temperature": 0.4,
|
55 |
+
"frequency_penalty": 0.5,
|
56 |
+
"top_p": 0.5,
|
57 |
+
"top_k": 0.5,
|
58 |
+
"extra_body": {"repetition_penalty": 0.5},
|
59 |
}
|
60 |
if tools:
|
61 |
request_params.update({"tool_choice": "auto", "tools": tools})
|