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
57530d87
Commit
57530d87
authored
Apr 02, 2024
by
Timothy J. Baek
Browse files
feat: /ollama head route
parent
2c030218
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
backend/apps/ollama/main.py
backend/apps/ollama/main.py
+6
-0
No files found.
backend/apps/ollama/main.py
View file @
57530d87
...
...
@@ -81,6 +81,12 @@ async def check_url(request: Request, call_next):
return
response
@
app
.
head
(
"/"
)
@
app
.
get
(
"/"
)
async
def
get_status
():
return
{
"status"
:
True
}
@
app
.
get
(
"/urls"
)
async
def
get_ollama_api_urls
(
user
=
Depends
(
get_admin_user
)):
return
{
"OLLAMA_BASE_URLS"
:
app
.
state
.
OLLAMA_BASE_URLS
}
...
...
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