mistral_translator 0.3.2 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MistralTranslator
4
- VERSION = "0.3.2"
4
+ VERSION = "0.5.0"
5
5
 
6
6
  # Informations additionnelles sur la gem
7
7
  API_VERSION = "v1"
@@ -107,7 +107,7 @@ module MistralTranslator
107
107
 
108
108
  # Health check
109
109
  def health_check
110
- client.complete("Hello", max_tokens: 10, context: {})
110
+ client.chat("Hello", max_tokens: 10)
111
111
  { status: :ok, message: "API connection successful" }
112
112
  rescue AuthenticationError
113
113
  { status: :error, message: "Authentication failed - check your API key" }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mistral_translator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre Cherbero
@@ -159,16 +159,21 @@ files:
159
159
  - lib/mistral_translator/client.rb
160
160
  - lib/mistral_translator/client_helpers.rb
161
161
  - lib/mistral_translator/configuration.rb
162
+ - lib/mistral_translator/data/languages.json
163
+ - lib/mistral_translator/deprecated_options.rb
162
164
  - lib/mistral_translator/errors.rb
163
165
  - lib/mistral_translator/helpers.rb
164
166
  - lib/mistral_translator/helpers_extensions.rb
165
167
  - lib/mistral_translator/levenshtein_helpers.rb
166
168
  - lib/mistral_translator/locale_helper.rb
167
169
  - lib/mistral_translator/logger.rb
170
+ - lib/mistral_translator/prompt.rb
168
171
  - lib/mistral_translator/prompt_builder.rb
169
172
  - lib/mistral_translator/prompt_helpers.rb
170
173
  - lib/mistral_translator/prompt_metadata_helpers.rb
174
+ - lib/mistral_translator/proxy.rb
171
175
  - lib/mistral_translator/response_parser.rb
176
+ - lib/mistral_translator/retries.rb
172
177
  - lib/mistral_translator/security.rb
173
178
  - lib/mistral_translator/summarizer.rb
174
179
  - lib/mistral_translator/translator.rb