pull/45/head
Kye 1 year ago
parent dff85f34bf
commit 58827f5ec1

@ -20,19 +20,19 @@ class OpenAI:
self.ai = AIChat(api_key=self.api_key, self.ai = AIChat(api_key=self.api_key,
system=self.system, system=self.system,
console=console, console=self.console,
model=model, model=self.model,
params=params, params=self.params,
save_messages=save_messages) save_messages=self.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=self.console,
# model=model, model=self.model,
# params=params, params=self.params,
# save_messages=save_messages save_messages=self.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