no async chat

Former-commit-id: dff85f34bf
pull/47/head
Kye 1 year ago
parent 3342984e64
commit 71b7c70108

@ -25,14 +25,14 @@ class OpenAI:
params=params, params=params,
save_messages=save_messages) save_messages=save_messages)
self.async_ai = AsyncAIChat( # self.async_ai = AsyncAIChat(
api_key=self.api_key, # api_key=self.api_key,
system=self.system, # system=self.system,
console=console, # console=console,
model=model, # model=model,
params=params, # params=params,
save_messages=save_messages # save_messages=save_messages
) # )
except Exception as error: except Exception as error:
raise ValueError(f"Failed to initialize the chat with error: {error}, check inputs and input types") raise ValueError(f"Failed to initialize the chat with error: {error}, check inputs and input types")

Loading…
Cancel
Save