lib/omniai/client.rb in omniai-1.6.0 vs lib/omniai/client.rb in omniai-1.6.1

- old
+ new

@@ -129,11 +129,14 @@ # @param format [Symbol] optional :text or :json # @param temperature [Float, nil] optional # @param stream [Proc, nil] optional # @param tools [Array<OmniAI::Tool>] optional # + # @yield [prompt] optional + # @yieldparam prompt [OmniAI::Chat::Prompt] + # # @return [OmniAI::Chat::Completion] - def chat(messages, model:, temperature: nil, format: nil, stream: nil, tools: nil) + def chat(messages, model:, temperature: nil, format: nil, stream: nil, tools: nil, &) raise NotImplementedError, "#{self.class.name}#chat undefined" end # @raise [OmniAI::Error] #