birthday validation is working

This commit is contained in:
Chad Bailey
2024-02-13 22:36:09 +00:00
parent 4548f91fdc
commit aee5087a46
3 changed files with 98 additions and 31 deletions

View File

@@ -35,10 +35,10 @@ class OpenAILLMService(LLMService):
async for chunk in chunks:
if len(chunk.choices) == 0:
continue
if chunk.choices[0].delta.content:
yield chunk.choices[0].delta.content
elif chunk.choices[0].delta.tool_calls:
if chunk.choices[0].delta.tool_calls:
yield chunk.choices[0].delta.tool_calls[0]
elif chunk.choices[0].delta.content:
yield chunk.choices[0].delta.content
async def run_llm(self, messages) -> str | None:
messages_for_log = json.dumps(messages)