Commit
·
f7d8687
1
Parent(s):
7633641
Update main.py
Browse files
main.py
CHANGED
@@ -32,7 +32,7 @@ class ChatCompletionRequest(BaseModel):
|
|
32 |
|
33 |
@app.post("/v1/chat/completions")
|
34 |
async def chat(request: ChatCompletionRequest, response_mode=None):
|
35 |
-
tokens = llm.tokenize(prompt)
|
36 |
async def server_sent_events(chat_chunks, llm):
|
37 |
yield prompt
|
38 |
for chat_chunk in llm.generate(chat_chunks):
|
|
|
32 |
|
33 |
@app.post("/v1/chat/completions")
|
34 |
async def chat(request: ChatCompletionRequest, response_mode=None):
|
35 |
+
tokens = llm.tokenize(request.prompt)
|
36 |
async def server_sent_events(chat_chunks, llm):
|
37 |
yield prompt
|
38 |
for chat_chunk in llm.generate(chat_chunks):
|