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
9f9122b6
"src/vscode:/vscode.git/clone" did not exist on "78f79ef67062884ef85efeb055b11b5dfc529676"
Commit
9f9122b6
authored
Jul 11, 2024
by
Timothy J. Baek
Browse files
enh: ChatValves
parent
8dcb3d78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
backend/apps/webui/main.py
backend/apps/webui/main.py
+10
-2
No files found.
backend/apps/webui/main.py
View file @
9f9122b6
...
...
@@ -165,6 +165,10 @@ async def get_pipe_models():
f
"
{
function_module
.
name
}{
manifold_pipe_name
}
"
)
pipe_flag
=
{
"type"
:
pipe
.
type
}
if
hasattr
(
function_module
,
"ChatValves"
):
pipe_flag
[
"valves_spec"
]
=
function_module
.
ChatValves
.
schema
()
pipe_models
.
append
(
{
"id"
:
manifold_pipe_id
,
...
...
@@ -172,10 +176,14 @@ async def get_pipe_models():
"object"
:
"model"
,
"created"
:
pipe
.
created_at
,
"owned_by"
:
"openai"
,
"pipe"
:
{
"type"
:
pipe
.
type
}
,
"pipe"
:
pipe_flag
,
}
)
else
:
pipe_flag
=
{
"type"
:
"pipe"
}
if
hasattr
(
function_module
,
"ChatValves"
):
pipe_flag
[
"valves_spec"
]
=
function_module
.
ChatValves
.
schema
()
pipe_models
.
append
(
{
"id"
:
pipe
.
id
,
...
...
@@ -183,7 +191,7 @@ async def get_pipe_models():
"object"
:
"model"
,
"created"
:
pipe
.
created_at
,
"owned_by"
:
"openai"
,
"pipe"
:
{
"type"
:
"pipe"
}
,
"pipe"
:
pipe_flag
,
}
)
...
...
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