Spaces:
Running
on
Zero
Running
on
Zero
fda
Browse files
controllers/gpt_enginner20240628104119
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 5de29c2ffbc70333f1d50d276a0497b8bcbd3e7a
|
mysite/interpreter/interpreter.py
CHANGED
@@ -85,7 +85,7 @@ async def completion(message: str, history, c=None, d=None, prompt="あなたは
|
|
85 |
stop=None,
|
86 |
)
|
87 |
all_result = ""
|
88 |
-
for chunk in stream:
|
89 |
current_content = chunk.choices[0].delta.content or ""
|
90 |
all_result += current_content
|
91 |
yield current_content
|
|
|
85 |
stop=None,
|
86 |
)
|
87 |
all_result = ""
|
88 |
+
async for chunk in stream:
|
89 |
current_content = chunk.choices[0].delta.content or ""
|
90 |
all_result += current_content
|
91 |
yield current_content
|