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 d3b7a8eb
authored
Feb 25, 2024
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化分隔符
1 parent
6f7915c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
code/Sales_FastApi.py
code/Sales_FastApi.py
View file @
d3b7a8e
...
...
@@ -196,7 +196,7 @@ async def websocket_endpoint(ws: WebSocket, client_id: str):
logger
.
info
(
f
"接受到的历史记录{history_str}"
)
history_data
=
json
.
loads
(
history_str
)
for
item
in
history_data
:
history
.
append
((
item
.
split
(
":
"
)[
0
],
item
.
split
(
"
:"
)[
1
]))
history
.
append
((
item
.
split
(
":
:"
)[
0
],
item
.
split
(
":
:"
)[
1
]))
resp0
=
""
# for response, history in model.stream_chat(tokenizer, data, [], max_length= 2048,top_p= 0.7, temperature= 0.95):
...
...
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