importjson defask_anythingllm(question, workspace_name, api_key): url=f"http://ip:port/api/v1/workspace/{workspace_name}/stream-chat"#注意api中有一個不帶stream的接口,該接口會一次性返回 headers={ "Authorization": f"Bearer {api_key}", "Content-Type":"application/json", "accept":"text/...
www.dbjr.com.cn/python/338176k...htm 2025-6-6