"src/git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "8aef3934c45319f7b33b605a442dd626c32340cb"
Commit c2e6e447 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac

parent 6e7e575a
...@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment