Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,12 +40,12 @@ def respond(
|
|
40 |
|
41 |
try:
|
42 |
stream = client.chat_completion(
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
partial_message = ""
|
50 |
for response in stream:
|
51 |
if response.token.special:
|
|
|
40 |
|
41 |
try:
|
42 |
stream = client.chat_completion(
|
43 |
+
messages,
|
44 |
+
max_tokens=max_tokens, # 'max_new_tokens'에서 'max_tokens'로 변경
|
45 |
+
temperature=temperature,
|
46 |
+
top_p=top_p,
|
47 |
+
stream=True,
|
48 |
+
)
|
49 |
partial_message = ""
|
50 |
for response in stream:
|
51 |
if response.token.special:
|