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
c2e6e447
"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "5245d037aca3dd3e885be0bd723767cce69b087d"
Commit
c2e6e447
authored
Jun 10, 2024
by
Timothy J. Baek
Browse files
refac
parent
6e7e575a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/lib/components/workspace/Tools/CodeEditor.svelte
src/lib/components/workspace/Tools/CodeEditor.svelte
+5
-5
No files found.
src/lib/components/workspace/Tools/CodeEditor.svelte
View file @
c2e6e447
...
@@ -5,11 +5,7 @@
...
@@ -5,11 +5,7 @@
let codeEditor;
let codeEditor;
let boilerplate = `# Add your custom tools using pure Python code here, make sure to add type hints
let boilerplate = `# Tip: Use Ctrl/Cmd + S to format the code
# Use Sphinx-style docstrings to document your tools, they will be used for generating tools specifications
# Please refer to function_calling_filter_pipeline.py file from pipelines project for an example
# Tip: Use Ctrl/Cmd + S to format the code
from datetime import datetime
from datetime import datetime
import requests
import requests
...
@@ -19,6 +15,10 @@ class Tools:
...
@@ -19,6 +15,10 @@ class Tools:
def __init__(self):
def __init__(self):
pass
pass
# Add your custom tools using pure Python code here, make sure to add type hints
# Use Sphinx-style docstrings to document your tools, they will be used for generating tools specifications
# Please refer to function_calling_filter_pipeline.py file from pipelines project for an example
def get_current_time(self) -> str:
def get_current_time(self) -> str:
"""
"""
Get the current time.
Get the current time.
...
...
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