Class: OmniAI::Google::Chat

Inherits:
Chat
  • Object
show all
Defined in:
lib/omniai/google/chat.rb,
lib/omniai/google/chat/chunk.rb,
lib/omniai/google/chat/stream.rb,
lib/omniai/google/chat/completion.rb

Overview

A Google chat implementation.

Usage:

chat = OmniAI::Google::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 Classes: Chunk, Completion, Stream