ox-ai-workers 1.1.1.2 → 1.1.1.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: 88cf2322e5e5f9f67360a09801767f58b5a926411e24a53fd03887e035c2c2d7
4
- data.tar.gz: 0da9e2585f0e347cc193aee650fcec6b6458a091869f9bd4af6e857cc9c30aec
3
+ metadata.gz: 44d4a99086cb0cc9e92fb6059de0616c90866fd078caebc2af0112ab1dd1d6a5
4
+ data.tar.gz: 2b4742436eaec5000d1fb0d2df426774cdcf28e1c54898ff5a0e4ee05eb07eff
5
5
  SHA512:
6
- metadata.gz: 3f060a38af2fca2f37a01cc44cc19e573565852b735571882a53c9376d4b81d37f77b848fbd6ebd5cf42e71ba3a68045ea021ab967cd140af2a83c22872e6056
7
- data.tar.gz: 7cdd9fc305a3e2498a14cf81949abfc38fafa6845378f42c431c65591259f4cd931fa21dbaefda72156ee0dc3644ecc98b2673d15d3676a65a405b61f019ac76
6
+ metadata.gz: df456abf84ba43defb3771e0a1e5ba19e28e11f69f131fa24a6f158e441d39929973b3f2fdee0e94cfe00f6e00aaabe23aa201d60ca48f04c2322434548b2348
7
+ data.tar.gz: b08d90565c94fc0a58f5cb5f5d4e9e550b09ad2e7f70f84079eb220fb2f44d8718e3b405fad7678713861be9add248fa34e0df2e50262eea4b891856166aaec4
@@ -269,12 +269,12 @@ module OxAiWorkers
269
269
  add_raw_context({ role:, content: })
270
270
  end
271
271
 
272
- def add_image(text:, url: nil, binary: nil, role: :user, detail: 'auto', mime_type: 'image/png')
272
+ def add_image(text:, url: nil, binary: nil, role: :user, mime_type: 'image/png')
273
273
  content = []
274
274
  if binary.present?
275
- content = @worker.model.add_base64(binary:, text:, mime_type:, detail:)
275
+ content = @worker.model.add_base64(binary:, text:, mime_type:)
276
276
  elsif url.present?
277
- content = @worker.model.add_url(url:, text:, detail:, mime_type:)
277
+ content = @worker.model.add_url(url:, text:, mime_type:)
278
278
  end
279
279
 
280
280
  add_raw_context({ role:, content: })
@@ -70,7 +70,7 @@ module OxAiWorkers
70
70
  ]
71
71
  end
72
72
 
73
- def add_base64(binary:, text:, mime_type:, detail:)
73
+ def add_base64(binary:, text:, mime_type:)
74
74
  content = []
75
75
  content << { type: 'text', text: } if text.present?
76
76
  content << {
@@ -66,7 +66,7 @@ module OxAiWorkers
66
66
  ]
67
67
  end
68
68
 
69
- def add_base64(binary:, text:, mime_type:, detail: 'auto')
69
+ def add_base64(binary:, text:, mime_type:, detail: 'high')
70
70
  content = []
71
71
  content << { type: 'text', text: } if text.present?
72
72
  content << if mime_type.include?('image')
@@ -88,7 +88,7 @@ module OxAiWorkers
88
88
  content
89
89
  end
90
90
 
91
- def add_url(url:, text:, detail: 'auto')
91
+ def add_url(url:, text:, detail: 'high')
92
92
  content = []
93
93
  content << { type: 'text', text: } if text.present?
94
94
  content << { type: 'image_url', image_url: { url:, detail: } }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OxAiWorkers
4
- VERSION = '1.1.1.2'
4
+ VERSION = '1.1.1.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ox-ai-workers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1.2
4
+ version: 1.1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Smolev