Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
de0084c8
"...composable_kernel_onnxruntime.git" did not exist on "567f70f552d00765000579565267d62d0d3d3bf0"
Commit
de0084c8
authored
Feb 22, 2024
by
Timothy J. Baek
Browse files
feat: litellm integration
parent
7b27a96e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
backend/main.py
backend/main.py
+4
-0
backend/requirements.txt
backend/requirements.txt
+2
-0
No files found.
backend/main.py
View file @
de0084c8
...
@@ -8,6 +8,8 @@ from fastapi.middleware.cors import CORSMiddleware
...
@@ -8,6 +8,8 @@ from fastapi.middleware.cors import CORSMiddleware
from
starlette.exceptions
import
HTTPException
as
StarletteHTTPException
from
starlette.exceptions
import
HTTPException
as
StarletteHTTPException
from
litellm.proxy.proxy_server
import
app
as
litellm_app
from
apps.ollama.main
import
app
as
ollama_app
from
apps.ollama.main
import
app
as
ollama_app
from
apps.openai.main
import
app
as
openai_app
from
apps.openai.main
import
app
as
openai_app
from
apps.audio.main
import
app
as
audio_app
from
apps.audio.main
import
app
as
audio_app
...
@@ -54,6 +56,8 @@ async def check_url(request: Request, call_next):
...
@@ -54,6 +56,8 @@ async def check_url(request: Request, call_next):
app
.
mount
(
"/api/v1"
,
webui_app
)
app
.
mount
(
"/api/v1"
,
webui_app
)
app
.
mount
(
"/litellm/api"
,
litellm_app
)
app
.
mount
(
"/ollama/api"
,
ollama_app
)
app
.
mount
(
"/ollama/api"
,
ollama_app
)
app
.
mount
(
"/openai/api"
,
openai_app
)
app
.
mount
(
"/openai/api"
,
openai_app
)
...
...
backend/requirements.txt
View file @
de0084c8
...
@@ -16,6 +16,8 @@ aiohttp
...
@@ -16,6 +16,8 @@ aiohttp
peewee
peewee
bcrypt
bcrypt
litellm[proxy]
langchain
langchain
langchain-community
langchain-community
chromadb
chromadb
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment