lara-sdk 1.11.1 → 1.11.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/lara/translator.rb +5 -5
- 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: d543909328f360f51e665bc07091371505423dcd8774573e591df6951661e35e
|
|
4
|
+
data.tar.gz: 98a10930ee0f98a8d316ea4fcc47b3c179b71ddc41336dc5538a484d6374dda1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c65593a7fa5ba94323fa379bd1073b344770ac19a96120ae95689faf6b1a160a9cf01dd10d9f4b3a0e65d515462d5ecf3700957dcb2ead0ea0204190c3cb1790
|
|
7
|
+
data.tar.gz: 6cad2d7f55cdd79f593acea7e1ccf6682b73efd27db77785410ea7841670ccedd7b6ad58d0ef91af41af78b4efae38db23b0a6e765546cab229ff06e1e971006
|
data/lib/lara/translator.rb
CHANGED
|
@@ -47,7 +47,7 @@ module Lara
|
|
|
47
47
|
# @param glossaries [Array<String>,nil]
|
|
48
48
|
# @param instructions [Array<String>,nil]
|
|
49
49
|
# @param content_type [String,nil]
|
|
50
|
-
# @param multiline [Boolean]
|
|
50
|
+
# @param multiline [Boolean,nil] Deprecated.
|
|
51
51
|
# @param timeout_ms [Integer,nil]
|
|
52
52
|
# @param priority [String,nil]
|
|
53
53
|
# @param use_cache [String,Boolean,nil]
|
|
@@ -56,7 +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
|
|
59
|
+
# @param reasoning_effort [String,nil] "low", "medium", or "high"; requires reasoning: true. Omit for the server default.
|
|
60
60
|
# @param image_context [Hash,Array<Hash>,nil] One HTTPS or base64 PNG/JPEG/WebP image; requires reasoning when non-empty.
|
|
61
61
|
# Image validation is performed by the API. An empty array preserves text-only translation.
|
|
62
62
|
# @param headers [Hash,nil]
|
|
@@ -66,9 +66,9 @@ module Lara
|
|
|
66
66
|
# @yield [Lara::Models::TextResult] Partial translation result (only when reasoning is true)
|
|
67
67
|
# @return [Lara::Models::TextResult] Final translation result
|
|
68
68
|
def translate(text, target:, source: nil, source_hint: nil, adapt_to: nil, glossaries: nil,
|
|
69
|
-
instructions: nil, content_type: nil, multiline:
|
|
69
|
+
instructions: nil, content_type: nil, multiline: nil, timeout_ms: nil,
|
|
70
70
|
priority: nil, use_cache: nil, cache_ttl_s: nil, no_trace: false, verbose: false,
|
|
71
|
-
style: nil, reasoning: false,
|
|
71
|
+
style: nil, reasoning: false, reasoning_effort: nil, image_context: nil, headers: nil, metadata: nil,
|
|
72
72
|
profanities_detect: nil, profanities_handling: nil,
|
|
73
73
|
styleguide_id: nil, styleguide_reasoning: nil,
|
|
74
74
|
styleguide_explanation_language: nil, &callback)
|
|
@@ -97,7 +97,7 @@ module Lara
|
|
|
97
97
|
verbose: verbose,
|
|
98
98
|
style: style,
|
|
99
99
|
reasoning: reasoning,
|
|
100
|
-
effort:
|
|
100
|
+
effort: reasoning_effort,
|
|
101
101
|
image_context: image_context,
|
|
102
102
|
metadata: metadata,
|
|
103
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.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Translated
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-11-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|