diff --git a/Gemfile.lock b/Gemfile.lock index 17c0186..200ab61 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - omniai (1.0.7) + omniai (1.0.8) event_stream_parser http zeitwerk diff --git a/README.md b/README.md index 4fd2843..160a532 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ Clients that support chat (e.g. Anthropic w/ "Claude", Google w/ "Gemini", Mistr ```ruby completion = client.chat('Tell me a joke.') -puts(completion.choice.message.content) # '...' +completion.choice.message.content # '...' ``` #### w/ a Collection of Messages @@ -77,13 +77,10 @@ messages = [ role: 'system', content: 'You are a helpful assistant with an expertise in geography.', }, - { - role: 'user', - content: 'What is the capital of Canada?', - }, + 'What is the capital of Canada?' ] completion = client.chat(messages, model: '...', temperature: 0.7, format: :json) -puts(completion.choice.message.content) # '...' +completion.choice.message.content ``` #### w/ a Collection of Files @@ -103,7 +100,7 @@ message = { } completion = client.chat(message) -puts(completion.choice.message.content) # '...' +completion.choice.message.content ``` #### Streaming diff --git a/lib/omniai/version.rb b/lib/omniai/version.rb index 6abfcaf..0e944c5 100644 --- a/lib/omniai/version.rb +++ b/lib/omniai/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module OmniAI - VERSION = '1.0.7' + VERSION = '1.0.8' end