lara-sdk 1.11.0 → 1.11.1
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/lara/translator.rb +3 -1
- data/lib/lara/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1ee8cb6868618c828617b0de78b32a3741effb9f45f1a195f47585c29728e51c
|
|
4
|
+
data.tar.gz: 2cd9efe5a99ad41df2a3c6cdfddeeb82469ae7f67779a0c4146cb97e0644ff85
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4714a55dbee8c29c9133400037c7026c311a052a42d8861e133a952415fcfda557299b74cfed837740a2651b3779e8ce884cea8050b9c6ccaa0f52d44a384538
|
|
7
|
+
data.tar.gz: 4f11b83d1ac9c02dec61fbb154c9aff00c342b37ece3db8ff1ad1ccffb503bef09c7db8645149b09cbeb148d02f5813ca83595ce00fcb8ed7c206dd0574521fc
|
data/lib/lara/translator.rb
CHANGED
|
@@ -56,6 +56,7 @@ module Lara
|
|
|
56
56
|
# @param verbose [Boolean]
|
|
57
57
|
# @param style [String,nil]
|
|
58
58
|
# @param reasoning [Boolean] When true with a block, yields partial results during reasoning
|
|
59
|
+
# @param effort [String,nil] "low", "medium", or "high"; requires reasoning: true. Omit for the server default.
|
|
59
60
|
# @param image_context [Hash,Array<Hash>,nil] One HTTPS or base64 PNG/JPEG/WebP image; requires reasoning when non-empty.
|
|
60
61
|
# Image validation is performed by the API. An empty array preserves text-only translation.
|
|
61
62
|
# @param headers [Hash,nil]
|
|
@@ -67,7 +68,7 @@ module Lara
|
|
|
67
68
|
def translate(text, target:, source: nil, source_hint: nil, adapt_to: nil, glossaries: nil,
|
|
68
69
|
instructions: nil, content_type: nil, multiline: true, timeout_ms: nil,
|
|
69
70
|
priority: nil, use_cache: nil, cache_ttl_s: nil, no_trace: false, verbose: false,
|
|
70
|
-
style: nil, reasoning: false, image_context: nil, headers: nil, metadata: nil,
|
|
71
|
+
style: nil, reasoning: false, effort: nil, image_context: nil, headers: nil, metadata: nil,
|
|
71
72
|
profanities_detect: nil, profanities_handling: nil,
|
|
72
73
|
styleguide_id: nil, styleguide_reasoning: nil,
|
|
73
74
|
styleguide_explanation_language: nil, &callback)
|
|
@@ -96,6 +97,7 @@ module Lara
|
|
|
96
97
|
verbose: verbose,
|
|
97
98
|
style: style,
|
|
98
99
|
reasoning: reasoning,
|
|
100
|
+
effort: effort,
|
|
99
101
|
image_context: image_context,
|
|
100
102
|
metadata: metadata,
|
|
101
103
|
profanities_detect: profanities_detect,
|
data/lib/lara/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lara-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.11.
|
|
4
|
+
version: 1.11.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Translated
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|