lib/gen_ai/language/open_ai.rb in gen-ai-0.4.0.alpha.3 vs lib/gen_ai/language/open_ai.rb in gen-ai-0.4.0

- old
+ new

@@ -30,10 +30,10 @@ build_result(model: parameters[:model], raw: response, parsed: extract_completions(response)) end def chat(messages, options = {}) parameters = { - messages: messages.map(&:deep_symbolize_keys!), + messages: messages.map(&:deep_symbolize_keys), model: options.delete(:model) || COMPLETION_MODEL }.merge(options) response = handle_errors { client.chat(parameters: parameters) }