mirror of
https://github.com/open-webui/pipelines
synced 2025-06-26 18:15:58 +00:00
fix
This commit is contained in:
5
utils.py
5
utils.py
@@ -3,15 +3,14 @@ import time
|
||||
|
||||
from typing import List
|
||||
from schemas import OpenAIChatMessage
|
||||
from config import MODEL_ID
|
||||
|
||||
|
||||
def stream_message_template(message: str):
|
||||
def stream_message_template(model: str, message: str):
|
||||
return {
|
||||
"id": f"rag-{str(uuid.uuid4())}",
|
||||
"object": "chat.completion.chunk",
|
||||
"created": int(time.time()),
|
||||
"model": MODEL_ID,
|
||||
"model": model,
|
||||
"choices": [
|
||||
{
|
||||
"index": 0,
|
||||
|
||||
Reference in New Issue
Block a user