From d302c26a121eca19347dfa031a2c68cbed3fddfc Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 28 Dec 2024 16:33:14 -0800 Subject: [PATCH] Update index.mdx --- docs/features/plugin/migration/index.mdx | 26 ------------------------ 1 file changed, 26 deletions(-) diff --git a/docs/features/plugin/migration/index.mdx b/docs/features/plugin/migration/index.mdx index 02ea2e2..1bb3040 100644 --- a/docs/features/plugin/migration/index.mdx +++ b/docs/features/plugin/migration/index.mdx @@ -187,32 +187,6 @@ Here’s a quick cheat sheet to remember: --- -### ✍️ Example Project on Open WebUI 0.5 - -Here’s a simple example to tie everything together: - -```python -from open_webui.main import chat_completion -from fastapi import Request -from typing import Any, Optional, Callable - -class Pipe: - def __init__(self): - pass - - async def handle_request( - self, - body: dict, - __request__: Request, - __task__=None, - ) -> str: - # Call the unified endpoint for chat completion - response = await chat_completion(__request__, body) - return response -``` - ---- - ## 🎉 Hooray! You're Ready! That's it! You've successfully migrated from **Open WebUI 0.4 to 0.5**. By refactoring your imports, using the unified endpoint, and updating function signatures, you'll be fully equipped to leverage the latest features and improvements in version 0.5.