ox-ai-workers 1.1.2.1 → 1.1.2.2
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.
- checksums.yaml +4 -4
- data/lib/oxaiworkers/models/anthropic_max.rb +1 -0
- data/lib/oxaiworkers/models/deepseek_max.rb +1 -0
- data/lib/oxaiworkers/models/openai_max.rb +1 -0
- data/lib/oxaiworkers/models/openai_mini.rb +1 -0
- data/lib/oxaiworkers/models/openai_nano.rb +1 -0
- data/lib/oxaiworkers/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7345d2dabee419e590b804e61614d7849d86112361077ad7353ddbb3a8a22436
|
4
|
+
data.tar.gz: c71492424ffe59a875d3d4131e808c7b3657c04c51436b60d99c946af9948412
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83a19cb82666fd09c2afae40c0d0ce3fe6dd422f64e6139a7e1482d7131149394bb95ce1473cd76faa8859dd04336f004e75220f02629ca7400194a9f0fdea59
|
7
|
+
data.tar.gz: 9c70bd792d3091e2bbe896ca54c1958ea222028584c509ead8b3984f5ecafea1cb6f23b7329744eea57b1203508cb376e25f4615d4a54abfbadd9782bad3ea83
|
@@ -6,6 +6,7 @@ module OxAiWorkers
|
|
6
6
|
def initialize(uri_base: nil, api_key: nil, model: nil, max_tokens: nil, temperature: nil, frequency_penalty: nil)
|
7
7
|
@model = model || 'claude-3-7-sonnet-latest'
|
8
8
|
@uri_base = uri_base # || 'https://api.anthropic.com/v1/'
|
9
|
+
@temperature = temperature || 0.1
|
9
10
|
@api_key = api_key || OxAiWorkers.configuration.access_token_anthropic
|
10
11
|
super(uri_base: @uri_base, api_key: @api_key, model: @model, max_tokens:, temperature:, frequency_penalty:)
|
11
12
|
end
|
@@ -5,6 +5,7 @@ module OxAiWorkers
|
|
5
5
|
class DeepseekMax < LLMBase
|
6
6
|
def initialize(uri_base: nil, api_key: nil, model: nil, max_tokens: nil, temperature: nil, frequency_penalty: nil)
|
7
7
|
@model = model || 'deepseek-chat'
|
8
|
+
@temperature = temperature || 0.1
|
8
9
|
@uri_base = uri_base || 'https://api.deepseek.com/'
|
9
10
|
@api_key = api_key || OxAiWorkers.configuration.access_token_deepseek
|
10
11
|
super(uri_base: @uri_base, api_key: @api_key, model: @model, max_tokens:, temperature:, frequency_penalty:)
|
@@ -5,6 +5,7 @@ module OxAiWorkers
|
|
5
5
|
class OpenaiMax < LLMBase
|
6
6
|
def initialize(uri_base: nil, api_key: nil, model: nil, max_tokens: nil, temperature: nil, frequency_penalty: nil)
|
7
7
|
@model = model || 'gpt-4.1'
|
8
|
+
@temperature = temperature || 0.1
|
8
9
|
@api_key = api_key || OxAiWorkers.configuration.access_token_openai
|
9
10
|
super(uri_base:, api_key: @api_key, model: @model, max_tokens:, temperature:, frequency_penalty:)
|
10
11
|
end
|
@@ -5,6 +5,7 @@ module OxAiWorkers
|
|
5
5
|
class OpenaiMini < OpenaiMax
|
6
6
|
def initialize(uri_base: nil, api_key: nil, model: nil, max_tokens: nil, temperature: nil, frequency_penalty: nil)
|
7
7
|
@model = model || 'gpt-4.1-mini'
|
8
|
+
@temperature = temperature || 0.1
|
8
9
|
super(uri_base:, api_key:, model: @model, max_tokens:, temperature:, frequency_penalty:)
|
9
10
|
end
|
10
11
|
end
|
@@ -5,6 +5,7 @@ module OxAiWorkers
|
|
5
5
|
class OpenaiNano < OpenaiMax
|
6
6
|
def initialize(uri_base: nil, api_key: nil, model: nil, max_tokens: nil, temperature: nil, frequency_penalty: nil)
|
7
7
|
@model = model || 'gpt-4.1-nano'
|
8
|
+
@temperature = temperature || 0.1
|
8
9
|
super(uri_base:, api_key:, model: @model, max_tokens:, temperature:, frequency_penalty:)
|
9
10
|
end
|
10
11
|
end
|
data/lib/oxaiworkers/version.rb
CHANGED