Spaces:
Runtime error
Runtime error
chappyzhou
commited on
Commit
·
b235989
1
Parent(s):
18000c2
update
Browse files
app.py
CHANGED
@@ -14,6 +14,7 @@ def completion(prompt):
|
|
14 |
start = time.monotonic()
|
15 |
resp = requests.post('https://welm.weixin.qq.com/v1/completions', json={
|
16 |
'prompt': prompt,
|
|
|
17 |
'max_tokens': max_tokens,
|
18 |
'temperature': 0.85,
|
19 |
'top_p': 0.95,
|
|
|
14 |
start = time.monotonic()
|
15 |
resp = requests.post('https://welm.weixin.qq.com/v1/completions', json={
|
16 |
'prompt': prompt,
|
17 |
+
'model': 'medium',
|
18 |
'max_tokens': max_tokens,
|
19 |
'temperature': 0.85,
|
20 |
'top_p': 0.95,
|