Muse (@preacher)Open WebUI工具,获取当前上海时间(东八区) 中发帖

之前用AI安排进度和行程,无法知道当前时间,官网的工具没有自己需要的。就之前在别人的代码上更改了{AI帮忙修改}。 
先上测试结果
[image]
openwebui官网
import requests
from datetime import datetime, timezone, timedelta

class Tools:
"""
CW_NTP Tool to retrieve and display the current date and time in Shanghai, China (UTC+8).
"""

def get_shanghai_time(self) -> str:
"""
Fetches the current time from the specified NTP server (al...