F-Droid 在 接力:一起完成Open WebUI接入LINUX DO工具的编写 中发帖
我先来造个轮子
import requests
import asyncio
import re
import json
from typing import Callable, Any, Optional, Dict, List
from urllib.parse import urlparse
EmitterType = Optional[Callable[[dict], Any]]
SendCitationType = Callable[[str, str, str], None]
SendStatusType = Callable[[str, bool], None]
def get_send_citation(__event_emitter__: EmitterType) -> SendCitationType:
async def send_citation(ur...