remove karma endpoints from schema + add webhook notification for debugging (failed lyrics searches, non-LRC)

This commit is contained in:
2025-05-01 06:32:28 -04:00
parent 8848d3a493
commit ad43db289a
6 changed files with 21 additions and 17 deletions

View File

@ -1,3 +1,4 @@
import logging
from typing import Optional
from openai import AsyncOpenAI
@ -13,6 +14,8 @@ class GPT:
self.default_system_prompt: str = """You are a helpful assistant who will provide only totally accurate tidbits of \
info on the specific songs the user may listen to."""
logging.getLogger("httpx").setLevel("CRITICAL")
async def get_completion(
self, prompt: str, system_prompt: Optional[str] = None
) -> Optional[str]: