no async chat

Former-commit-id: 86e014c551969186016c1c8feea1c2c775228bae
pull/160/head
Kye 2 years ago
parent 2b23a42dbc
commit 643e05c2f7

@ -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