immosquare-translate 0.1.9 → 0.1.11
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 180cb7b8db20ded1ad7b0ba82a190bc0e25d6d104b3490f0d2ebdda6ed51d207
|
4
|
+
data.tar.gz: '0079d5362c1db09a571b5834d12fb8417a1b055d28876e5db1ab97a415e282e6'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa746e854f10c0157f5a0c2934a165775aaaa8e22c29b8a36e6c7cb0d6acdc5ad339713b4b44e020c2690b2fad83346dc4388fc14878fb21c9ab230670998865
|
7
|
+
data.tar.gz: 29d144e83757472d32142696f39d4f52171c1598a54ff47109c37635fa2e5255a43800718784db8e6db39e387d761bff5ccde135b693399e914f60cc1b75b26a
|
@@ -7,8 +7,9 @@ module ImmosquareTranslate
|
|
7
7
|
|
8
8
|
|
9
9
|
OPEN_AI_MODELS = [
|
10
|
-
{:name => "gpt-3.5-turbo-0125", :window_tokens => 16_385, :output_tokens => 4096, :input_price_for_1m => 0.50,
|
11
|
-
{:name => "gpt-4-
|
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},
|
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}
|
12
13
|
].freeze
|
13
14
|
end
|
14
15
|
end
|
@@ -18,7 +18,7 @@ module ImmosquareTranslate
|
|
18
18
|
|
19
19
|
model_name = ImmosquareYaml.configuration.openai_model
|
20
20
|
model = OPEN_AI_MODELS.find {|m| m[:name] == model_name }
|
21
|
-
model = OPEN_AI_MODELS.find {|m| m[:name] == "gpt-
|
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
|
23
23
|
to_iso = to.map {|iso| [iso, ISO_639.find_by_code(iso).english_name.split(";").first] }
|
24
24
|
headers = {
|
@@ -176,7 +176,7 @@ module ImmosquareTranslate
|
|
176
176
|
##============================================================##
|
177
177
|
model_name = ImmosquareYaml.configuration.openai_model
|
178
178
|
model = OPEN_AI_MODELS.find {|m| m[:name] == model_name }
|
179
|
-
model = OPEN_AI_MODELS.find {|m| m[:name] == "gpt-
|
179
|
+
model = OPEN_AI_MODELS.find {|m| m[:name] == "gpt-4o" } if model.nil?
|
180
180
|
|
181
181
|
##============================================================##
|
182
182
|
## Manage blank values
|
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.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- IMMO SQUARE
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -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.
|
99
|
+
rubygems_version: 3.5.9
|
100
100
|
signing_key:
|
101
101
|
specification_version: 4
|
102
102
|
summary: AI-powered translations for Ruby applications, supporting a wide range of
|