activeagent 0.6.2 → 0.6.3
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a07262fb92e03b08ab0abaad0cf2c9b6575a4aa1f6988899c9d0b2d9b081589c
|
4
|
+
data.tar.gz: '0619435e72d1a4e368c330956aa1295059c98c94a4c885e02b7781e82ba56260'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c7277d51950db30434643a67379467886cf40e2a100e4ada54556b88cafd4a92e314e02f06d2a94572b686c7064a28d1da94c3176e207452611b3d340d7d455
|
7
|
+
data.tar.gz: e14ae5c030fe0ce4b7c47915f4728dfa9474b7a465695ab9c0e2cb244136eb024bf8c1f6657b2178282091c98af4171b549927f55a38d195023d9d4f540979e1
|
@@ -10,7 +10,8 @@ module ActiveAgent
|
|
10
10
|
@model_name = config["model"]
|
11
11
|
@host = config["host"] || "http://localhost:11434"
|
12
12
|
@api_version = config["api_version"] || "v1"
|
13
|
-
@
|
13
|
+
@api_type = config["api_type"] || nil
|
14
|
+
@client = OpenAI::Client.new(uri_base: @host, access_token: @access_token, log_errors: Rails.env.development?, api_version: @api_version, api_type: @api_type)
|
14
15
|
end
|
15
16
|
|
16
17
|
protected
|
@@ -22,6 +22,7 @@ module ActiveAgent
|
|
22
22
|
def initialize(config)
|
23
23
|
super
|
24
24
|
@host = config["host"] || nil
|
25
|
+
@api_type = config["api_type"] || nil
|
25
26
|
@access_token ||= config["api_key"] || config["access_token"] || OpenAI.configuration.access_token || ENV["OPENAI_ACCESS_TOKEN"]
|
26
27
|
@organization_id = config["organization_id"] || OpenAI.configuration.organization_id || ENV["OPENAI_ORGANIZATION_ID"]
|
27
28
|
@admin_token = config["admin_token"] || OpenAI.configuration.admin_token || ENV["OPENAI_ADMIN_TOKEN"]
|
@@ -30,6 +31,7 @@ module ActiveAgent
|
|
30
31
|
uri_base: @host,
|
31
32
|
organization_id: @organization_id,
|
32
33
|
admin_token: @admin_token,
|
34
|
+
api_type: @api_type,
|
33
35
|
log_errors: Rails.env.development?
|
34
36
|
)
|
35
37
|
|
data/lib/active_agent/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeagent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Bowen
|
8
|
+
autorequire:
|
8
9
|
bindir: bin
|
9
10
|
cert_chain: []
|
10
|
-
date:
|
11
|
+
date: 2025-10-13 00:00:00.000000000 Z
|
11
12
|
dependencies:
|
12
13
|
- !ruby/object:Gem::Dependency
|
13
14
|
name: actionpack
|
@@ -361,6 +362,7 @@ metadata:
|
|
361
362
|
documentation_uri: https://github.com/activeagents/activeagent
|
362
363
|
source_code_uri: https://github.com/activeagents/activeagent
|
363
364
|
rubygems_mfa_required: 'true'
|
365
|
+
post_install_message:
|
364
366
|
rdoc_options: []
|
365
367
|
require_paths:
|
366
368
|
- lib
|
@@ -375,7 +377,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
375
377
|
- !ruby/object:Gem::Version
|
376
378
|
version: '0'
|
377
379
|
requirements: []
|
378
|
-
rubygems_version: 3.
|
380
|
+
rubygems_version: 3.5.3
|
381
|
+
signing_key:
|
379
382
|
specification_version: 4
|
380
383
|
summary: Rails AI Agents Framework
|
381
384
|
test_files: []
|