Class: OmniAI::Mistral::Chat

Inherits:
Chat
  • Object
show all
Defined in:
lib/omniai/mistral/chat.rb

Overview

A Mistral chat implementation.

Usage:

chat = OmniAI::Mistral::Chat.new(client: client)
chat.completion('Tell me a joke.')
chat.completion(['Tell me a joke.'])
chat.completion({ role: 'user', content: 'Tell me a joke.' })
chat.completion([{ role: 'system', content: 'Tell me a joke.' }])

Defined Under Namespace

Modules: Model, Role

Constant Summary collapse

DEFAULT_MODEL =
Model::LARGE
JSON_RESPONSE_FORMAT =
{ type: 'json_object' }.freeze