mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
fix
This commit is contained in:
@@ -218,7 +218,7 @@ openAIClient = openai.AsyncOpenAI(api_key=openai.api_key)
|
||||
saint_harlot_friend = openAIClient.beta.assistants.create(
|
||||
name="Bane",
|
||||
instructions="You are a personal horoscope assistant to Saint Harlot",
|
||||
ools=[{"type":"file_search"}])
|
||||
tools=[{"type":"file_search"}])
|
||||
|
||||
|
||||
saint_harlot_thread = openAIClient.beta.threads.create()
|
||||
@@ -367,7 +367,7 @@ async def on_message(message):
|
||||
instructions = "Odpowiadaj po polsku chyba że zostaniesz przez użytkownika poinstruowany inaczej"
|
||||
)
|
||||
if run.status == 'completed':
|
||||
messages = openAiClient.beta.threads.messages.list(thread_id = saint_harlot_thread.id)
|
||||
messages = openAIClient.beta.threads.messages.list(thread_id = saint_harlot_thread.id)
|
||||
print(messages)
|
||||
else:
|
||||
print(run.status)
|
||||
|
||||
Reference in New Issue
Block a user