This commit is contained in:
2025-07-15 13:48:51 -04:00
parent a1f82036ff
commit fd300743c8
2 changed files with 15 additions and 9 deletions

View File

@ -11,8 +11,13 @@ class GPT:
api_key=self.api_key,
timeout=10.0,
)
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."""
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.
# IMPORTANT
As an AI assistant, you may not always have much information available to describe the track provided. That is TOTALLY FINE!
What is not acceptable is hallucinations, for example:
- Do NOT mention the name of the album the track was included on. You rarely have correct information in this context.
- If no 100% reliable data is available, do NOT (!!) mention the album..."""
logging.getLogger("httpx").setLevel("CRITICAL")
@ -33,7 +38,7 @@ class GPT:
},
],
model="gpt-4o-mini",
temperature=0.35,
temperature=1.00,
)
response: Optional[str] = chat_completion.choices[0].message.content
return response