refactoring
This commit is contained in:
@ -12,7 +12,7 @@ class GPT:
|
||||
api_key=self.api_key,
|
||||
timeout=10.0,
|
||||
)
|
||||
self.default_system_prompt = "You are a helpful assistant who will provide tidbits of info on songs the user may listen to."
|
||||
self.default_system_prompt = "You are a helpful assistant who will provide only totally accurate tidbits of info on the specific songs the user may listen to."
|
||||
|
||||
async def get_completion(self, prompt: str, system_prompt: Optional[str] = None) -> None:
|
||||
if not system_prompt:
|
||||
@ -29,5 +29,6 @@ class GPT:
|
||||
}
|
||||
],
|
||||
model="gpt-4o-mini",
|
||||
temperature=0.35,
|
||||
)
|
||||
return chat_completion.choices[0].message.content
|
Reference in New Issue
Block a user