ankush13r commited on
Commit
1c26a50
·
verified ·
1 Parent(s): 5f2c4de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -69,11 +69,10 @@ def completion(history, model, system_prompt: str, tools=None):
69
  "stream": True,
70
  "max_tokens": 1000,
71
  "temperature": 0.3,
72
- "top_k": 5,
73
  "top_p": 0.4,
74
  "min_p": 0.5,
75
  "frequency_penalty": 0.1,
76
- "extra_body": {"repetition_penalty": 1.2},
77
  }
78
  if tools:
79
  request_params.update({"tool_choice": "auto", "tools": tools})
 
69
  "stream": True,
70
  "max_tokens": 1000,
71
  "temperature": 0.3,
 
72
  "top_p": 0.4,
73
  "min_p": 0.5,
74
  "frequency_penalty": 0.1,
75
+ "extra_body": {"repetition_penalty": 1.2, "top_k": 5,},
76
  }
77
  if tools:
78
  request_params.update({"tool_choice": "auto", "tools": tools})