Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
azure-open-ai-embeddings-sales
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b91806de
authored
Feb 25, 2024
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加流式输出
1 parent
df86e3d3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
code/utilities/helper.py
code/utilities/helper.py
View file @
b91806d
...
@@ -349,7 +349,7 @@ class LLMHelper:
...
@@ -349,7 +349,7 @@ class LLMHelper:
print
(
f
"choice.finish reason: {choice.finish_reason}"
)
print
(
f
"choice.finish reason: {choice.finish_reason}"
)
logger
.
info
(
f
"choice.finish reason: {choice.finish_reason}"
)
logger
.
info
(
f
"choice.finish reason: {choice.finish_reason}"
)
yield
"<rdfast stop>"
yield
"<rdfast stop>"
break
#
break
else
:
else
:
if
choice
.
delta
.
content
is
None
:
if
choice
.
delta
.
content
is
None
:
continue
continue
...
@@ -388,7 +388,7 @@ class LLMHelper:
...
@@ -388,7 +388,7 @@ class LLMHelper:
print
(
f
"choice.finish reason: {choice.finish_reason}"
)
print
(
f
"choice.finish reason: {choice.finish_reason}"
)
logger
.
info
(
f
"choice.finish reason: {choice.finish_reason}"
)
logger
.
info
(
f
"choice.finish reason: {choice.finish_reason}"
)
yield
"<rdfast stop>"
yield
"<rdfast stop>"
break
#
break
else
:
else
:
if
choice
.
delta
.
content
is
None
:
if
choice
.
delta
.
content
is
None
:
continue
continue
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment