mirror of
https://github.com/open-webui/pipelines
synced 2025-05-17 10:53:23 +00:00
Update utils.py
This commit is contained in:
parent
452b401647
commit
a22133b191
2
utils.py
2
utils.py
@ -7,7 +7,7 @@ from schemas import OpenAIChatMessage
|
|||||||
|
|
||||||
def stream_message_template(model: str, message: str):
|
def stream_message_template(model: str, message: str):
|
||||||
return {
|
return {
|
||||||
"id": f"rag-{str(uuid.uuid4())}",
|
"id": f"{model}-{str(uuid.uuid4())}",
|
||||||
"object": "chat.completion.chunk",
|
"object": "chat.completion.chunk",
|
||||||
"created": int(time.time()),
|
"created": int(time.time()),
|
||||||
"model": model,
|
"model": model,
|
||||||
|
Loading…
Reference in New Issue
Block a user