Method: OmniAI::OpenAI::Client#chat
- Defined in:
- lib/omniai/openai/client.rb
#chat(prompt = nil, model: Chat::DEFAULT_MODEL, temperature: nil, format: nil, stream: nil, tools: nil) {|prompt| ... } ⇒ OmniAI::Chat::Completion
85 86 87 |
# File 'lib/omniai/openai/client.rb', line 85 def chat(prompt = nil, model: Chat::DEFAULT_MODEL, temperature: nil, format: nil, stream: nil, tools: nil, **, &) Chat.process!(prompt, model:, temperature:, format:, stream:, tools:, client: self, **, &) end |