人们好医声 (@542224248) 在 小佬初来,尝试公益站,有点疑惑, 中发帖

用了one API, 这个显示公益站api KEY是管用的把? 
 [image] 
然后在自己的python上调用, 
[image] 
[image] 
[image] 
跑起来就500,是哪里出了问题呢 
def test_ai_connection(self, config: AIConfig) → tuple[bool, str]: 
try: 
if config.ai_type == “ollama”: 
resp = requests.get(f"{config.base_url}/api/tags", timeout=5) 
if resp.status_code == 200: 
return True, “” 
else: 
return False, f"HTTP {resp.status_code}" 
else: 
url = config.base_url.r...
 
 
Back to Top