immosquare-translate 0.1.10 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46609ea19a96314d69cfcb8e0ef8083700213bf23a8ad6520558e7fd438bd4df
4
- data.tar.gz: cfd0087b85c20c4623564cef8957a07412b63292623958189f64adb112b6e3d1
3
+ metadata.gz: 67b99071be3a2d74bdeae22667154f01943fb334b9a0f17ad6304f78ee353344
4
+ data.tar.gz: b9764f58e1a3ee769d240fc46a6077df76f2ce97edf85a4b13af640713f63ebd
5
5
  SHA512:
6
- metadata.gz: 40f41ae2c313b8f9e90a61b5214d68c6a4c9f2e9bb8fe503bc061384d8306bf4871b5ee27e394ebc9bd51093591f715567a181350ba13bc697d24f81789455a8
7
- data.tar.gz: fcab83bb1f6fdf680113cbaabd8e803062bd700002bf9f19f2043151b580719943314cfe0a384091f3ca4a2d314cda104148d3c754aac47d45c24b52b6588848
6
+ metadata.gz: 6cc53f8830d8ee64362b2266d9d53198a13401ee3f7a815fd4500bf55fc8ab9afc78a625d3f7a017dfd879a4daad5e41d5a9f92089582ad492b2149468b00788
7
+ data.tar.gz: ad7140a4cb11569f6d2c170f56a5ea967c7672c961282951fc28c70b1dec1dbaa89b899e60eb18ba6a04436502ad072237df75443294ad71cda3f7f85a1f0e10
@@ -8,7 +8,7 @@ module ImmosquareTranslate
8
8
 
9
9
  OPEN_AI_MODELS = [
10
10
  {:name => "gpt-3.5-turbo-0125", :window_tokens => 16_385, :output_tokens => 4096, :input_price_for_1m => 0.50, :output_price_for_1m => 1.50, :group_size => 75},
11
- {:name => "gpt-4-turbo", :window_tokens => 128_000, :output_tokens => 4096, :input_price_for_1m => 10.00, :output_price_for_1m => 30.00, :group_size => 75}
11
+ {:name => "gpt-4-turbo", :window_tokens => 128_000, :output_tokens => 4096, :input_price_for_1m => 10.00, :output_price_for_1m => 30.00, :group_size => 75},
12
12
  {:name => "gpt-4o", :window_tokens => 128_000, :output_tokens => 4096, :input_price_for_1m => 5.00, :output_price_for_1m => 15.00, :group_size => 75}
13
13
  ].freeze
14
14
  end
@@ -16,7 +16,7 @@ module ImmosquareTranslate
16
16
  raise("Error: locale from is not a locale") if !from.is_a?(String) || from.size != 2
17
17
  raise("Error: locales is not an array of locales") if !to.is_a?(Array) || to.empty? || to.any? {|l| !l.is_a?(String) || l.size != 2 }
18
18
 
19
- model_name = ImmosquareYaml.configuration.openai_model
19
+ model_name = ImmosquareTranslate.configuration.openai_model
20
20
  model = OPEN_AI_MODELS.find {|m| m[:name] == model_name }
21
21
  model = OPEN_AI_MODELS.find {|m| m[:name] == "gpt-4o" } if model.nil?
22
22
  from_iso = ISO_639.find_by_code(from).english_name.split(";").first
@@ -1,3 +1,3 @@
1
1
  module ImmosquareTranslate
2
- VERSION = "0.1.10".freeze
2
+ VERSION = "0.1.12".freeze
3
3
  end
@@ -174,7 +174,7 @@ module ImmosquareTranslate
174
174
  ## https://platform.openai.com/docs/models/
175
175
  ## https://openai.com/pricing
176
176
  ##============================================================##
177
- model_name = ImmosquareYaml.configuration.openai_model
177
+ model_name = ImmosquareTranslate.configuration.openai_model
178
178
  model = OPEN_AI_MODELS.find {|m| m[:name] == model_name }
179
179
  model = OPEN_AI_MODELS.find {|m| m[:name] == "gpt-4o" } if model.nil?
180
180
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: immosquare-translate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
- - IMMO SQUARE
7
+ - immosquare
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-15 00:00:00.000000000 Z
11
+ date: 2024-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -77,7 +77,7 @@ files:
77
77
  - lib/immosquare-translate/version.rb
78
78
  - lib/immosquare-translate/yml_translator.rb
79
79
  - lib/tasks/immosquare-translate.rake
80
- homepage: https://github.com/IMMOSQUARE/immosquare-translate
80
+ homepage: https://github.com/immosquare/immosquare-translate
81
81
  licenses:
82
82
  - MIT
83
83
  metadata: {}
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  requirements: []
99
- rubygems_version: 3.5.9
99
+ rubygems_version: 3.5.21
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: AI-powered translations for Ruby applications, supporting a wide range of