mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
refac
This commit is contained in:
parent
6e7e575a18
commit
c2e6e44714
1 changed files with 5 additions and 5 deletions
|
|
@ -5,11 +5,7 @@
|
|||
|
||||
let codeEditor;
|
||||
|
||||
let boilerplate = `# 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
|
||||
|
||||
# Tip: Use Ctrl/Cmd + S to format the code
|
||||
let boilerplate = `# Tip: Use Ctrl/Cmd + S to format the code
|
||||
|
||||
from datetime import datetime
|
||||
import requests
|
||||
|
|
@ -19,6 +15,10 @@ class Tools:
|
|||
def __init__(self):
|
||||
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:
|
||||
"""
|
||||
Get the current time.
|
||||
|
|
|
|||
Loading…
Reference in a new issue