Skip to content

Commit

Permalink
Update index.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed Dec 29, 2024
1 parent f6015b8 commit 51941cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/features/plugin/migration/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class Pipe:
from pydantic import BaseModel
from fastapi import Request

from open_webui.main import chat_completion
from open_webui.utils.chat import generate_chat_completion


class User(BaseModel):
Expand All @@ -222,7 +222,7 @@ class Pipe:
# Uses the unified endpoint with updated signature
user = User(**__user__)
body["model"] = "llama3.2:latest"
return await chat_completion(__request__, body, user)
return await generate_chat_completion(__request__, body, user)
```

### Important Notes:
Expand Down

0 comments on commit 51941cb

Please sign in to comment.