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
aa1bb4fb
Commit
aa1bb4fb
authored
Jun 09, 2024
by
Timothy J. Baek
Browse files
refac
parent
5e7237b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
backend/main.py
backend/main.py
+1
-1
src/lib/apis/index.ts
src/lib/apis/index.ts
+1
-1
No files found.
backend/main.py
View file @
aa1bb4fb
...
...
@@ -494,7 +494,7 @@ async def get_models(user=Depends(get_verified_user)):
return
{
"data"
:
models
}
@
app
.
post
(
"/api/title/completions"
)
@
app
.
post
(
"/api/
task/
title/completions"
)
async
def
generate_title
(
form_data
:
dict
,
user
=
Depends
(
get_verified_user
)):
print
(
"generate_title"
)
model_id
=
form_data
[
"model"
]
...
...
src/lib/apis/index.ts
View file @
aa1bb4fb
...
...
@@ -112,7 +112,7 @@ export const generateTitle = async (
)
=>
{
let
error
=
null
;
const
res
=
await
fetch
(
`
${
WEBUI_BASE_URL
}
/api/title/completions`
,
{
const
res
=
await
fetch
(
`
${
WEBUI_BASE_URL
}
/api/
task/
title/completions`
,
{
method
:
'
POST
'
,
headers
:
{
Accept
:
'
application/json
'
,
...
...
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