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
9108df17
Commit
9108df17
authored
Jun 20, 2024
by
Timothy J. Baek
Browse files
refac: comments
parent
40cde07e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/lib/components/workspace/Functions/FunctionEditor.svelte
src/lib/components/workspace/Functions/FunctionEditor.svelte
+5
-0
No files found.
src/lib/components/workspace/Functions/FunctionEditor.svelte
View file @
9108df17
...
...
@@ -36,6 +36,8 @@ class Filter:
pass
def inlet(self, body: dict, user: Optional[dict] = None) -> dict:
# This method is invoked before the request is sent to the chat completion API.
# It can be used to modify the request body or perform validation checks.
print("inlet")
print(body)
print(user)
...
...
@@ -50,9 +52,12 @@ class Filter:
return body
def outlet(self, body: dict, user: Optional[dict] = None) -> dict:
# This method is invoked after the chat completion API has processed
# the request and generated a response. It can be used to overwrite the response messages.
print(f"outlet")
print(body)
print(user)
return body`;
const saveHandler = async () => {
...
...
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