mirror of
https://github.com/open-webui/docs
synced 2025-05-20 03:08:56 +00:00
Update index.mdx
This commit is contained in:
parent
f6015b82fc
commit
51941cb5d0
@ -199,7 +199,7 @@ class Pipe:
|
|||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
from fastapi import Request
|
from fastapi import Request
|
||||||
|
|
||||||
from open_webui.main import chat_completion
|
from open_webui.utils.chat import generate_chat_completion
|
||||||
|
|
||||||
|
|
||||||
class User(BaseModel):
|
class User(BaseModel):
|
||||||
@ -222,7 +222,7 @@ class Pipe:
|
|||||||
# Uses the unified endpoint with updated signature
|
# Uses the unified endpoint with updated signature
|
||||||
user = User(**__user__)
|
user = User(**__user__)
|
||||||
body["model"] = "llama3.2:latest"
|
body["model"] = "llama3.2:latest"
|
||||||
return await chat_completion(__request__, body, user)
|
return await generate_chat_completion(__request__, body, user)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Important Notes:
|
### Important Notes:
|
||||||
|
Loading…
Reference in New Issue
Block a user