ankush13r commited on
Commit
cb24839
·
verified ·
1 Parent(s): 7b5510d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -79,9 +79,9 @@ Only produce the summary after fully reading and understanding the input text.
79
  "stream": False,
80
  "max_tokens": 1000,
81
  "temperature": 0.2,
82
- "presence_penalty": 0.1,
83
- "frequency_penalty": 0.2,
84
- "extra_body": {"repetition_penalty": 0.7},
85
  }
86
 
87
  return client.chat.completions.create(**request_params)
@@ -106,8 +106,8 @@ def completion(history, model, system_prompt: str, tools=None):
106
  "stream": True,
107
  "max_tokens": 1000,
108
  "temperature": 0.2,
109
- #"frequency_penalty": 0.2,
110
- "extra_body": {"repetition_penalty": 1.1},
111
  }
112
  if tools:
113
  request_params.update({"tool_choice": "auto", "tools": tools})
 
79
  "stream": False,
80
  "max_tokens": 1000,
81
  "temperature": 0.2,
82
+ "presence_penalty": 0.3,
83
+ "frequency_penalty": 0.3,
84
+ "extra_body": {"repetition_penalty": 0.5},
85
  }
86
 
87
  return client.chat.completions.create(**request_params)
 
106
  "stream": True,
107
  "max_tokens": 1000,
108
  "temperature": 0.2,
109
+ "frequency_penalty": 0.1,
110
+ "extra_body": {"repetition_penalty": 0.9},
111
  }
112
  if tools:
113
  request_params.update({"tool_choice": "auto", "tools": tools})