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
0352e956
"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "f3e5700d49d5c7fe609aa16530b1b5d83ae10b90"
Commit
0352e956
authored
Aug 01, 2024
by
Michael Poluektov
Browse files
fix: redirect uri
parent
f9999569
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
backend/main.py
backend/main.py
+1
-4
No files found.
backend/main.py
View file @
0352e956
...
...
@@ -1770,7 +1770,6 @@ class AddPipelineForm(BaseModel):
@
app
.
post
(
"/api/pipelines/add"
)
async
def
add_pipeline
(
form_data
:
AddPipelineForm
,
user
=
Depends
(
get_admin_user
)):
r
=
None
try
:
urlIdx
=
form_data
.
urlIdx
...
...
@@ -1813,7 +1812,6 @@ class DeletePipelineForm(BaseModel):
@
app
.
delete
(
"/api/pipelines/delete"
)
async
def
delete_pipeline
(
form_data
:
DeletePipelineForm
,
user
=
Depends
(
get_admin_user
)):
r
=
None
try
:
urlIdx
=
form_data
.
urlIdx
...
...
@@ -1891,7 +1889,6 @@ async def get_pipeline_valves(
models
=
await
get_all_models
()
r
=
None
try
:
url
=
openai_app
.
state
.
config
.
OPENAI_API_BASE_URLS
[
urlIdx
]
key
=
openai_app
.
state
.
config
.
OPENAI_API_KEYS
[
urlIdx
]
...
...
@@ -2162,7 +2159,7 @@ async def oauth_login(provider: str, request: Request):
if
provider
not
in
OAUTH_PROVIDERS
:
raise
HTTPException
(
404
)
# If the provider has a custom redirect URL, use that, otherwise automatically generate one
redirect_uri
=
OAUTH_PROVIDERS
[
provider
].
get
(
"redirect_ur
l
"
)
or
request
.
url_for
(
redirect_uri
=
OAUTH_PROVIDERS
[
provider
].
get
(
"redirect_ur
i
"
)
or
request
.
url_for
(
"oauth_callback"
,
provider
=
provider
)
return
await
oauth
.
create_client
(
provider
).
authorize_redirect
(
request
,
redirect_uri
)
...
...
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