net-llm 0.5.0 → 0.6.0

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: a7168d17a456b69a77ada9a8c5eb855ae6730a124cdd55dd9e72fee2bfa6fef1
4
- data.tar.gz: 0fde66f7b0304486f3c5da851d7bbe97347f58fa0692dbd48c8462932ebe1bda
3
+ metadata.gz: ad2eabd3f99a0dadfd3a601df0e89cb351c4017578b3abdf49f071c5dcbcf128
4
+ data.tar.gz: 4f4843a319aad3394d1167e4c7d20c63f5eca5b5ad06f88a42646003534eb520
5
5
  SHA512:
6
- metadata.gz: 1969cb1afc0e322f9899f97c95898c9ebf825fd826ce43af0fc0dc66fe86b298ca4538d3426519791661824265d6ff0ce51f3ecd2012b464639a969df4c1142f
7
- data.tar.gz: 2d765715615d2d66f36fd00e8a64360061f740c8e19af1d1ef80c9d5d1b744964e5f3e741bc7af414d877acec7840adf855ba28159131bad31bcdebbe99dd5b5
6
+ metadata.gz: a63bc04aaf09294e194f7c322d7fa5314c1f208416cb8da3e8f4214078ca0d2fc2961993d356a6755797702625d32db824310af7e98e6397b727df2d1f6b4b22
7
+ data.tar.gz: 8f86686684d2f35b0253bbbce6b41524e87a168a1eb66a90a1c2ed915c063c1e3701429aab44a37ff0f40135450aa8a919f1459ac2583c5e6da3c1c18499bfc2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.6.0] - 2025-01-14
4
+
5
+ ### Added
6
+ - `GOOGLE_OAUTH_ACCESS_TOKEN` environment variable support for VertexAI provider
7
+ - Token is fetched fresh on each request (no memoization) for long-running processes
8
+ - Falls back to `gcloud auth application-default print-access-token` when not set
9
+
10
+ ### Changed
11
+ - Increased default `max_tokens` from 1024 to 65536 for Claude models
12
+ - Matches Claude Opus 4.5 / Sonnet 4 max output capacity
13
+
3
14
  ## [0.5.0] - 2025-01-07
4
15
 
5
16
  ### Added
@@ -17,7 +17,7 @@ module Net
17
17
  @headers_source.respond_to?(:call) ? @headers_source.call : @headers_source
18
18
  end
19
19
 
20
- def messages(messages, system: nil, max_tokens: 1024, tools: nil, &block)
20
+ def messages(messages, system: nil, max_tokens: 65536, tools: nil, &block)
21
21
  payload = build_payload(messages, system, max_tokens, tools, block_given?)
22
22
 
23
23
  if block_given?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Net
4
4
  module Llm
5
- VERSION = "0.5.0"
5
+ VERSION = "0.6.0"
6
6
  end
7
7
  end
@@ -31,7 +31,9 @@ module Net
31
31
  end
32
32
 
33
33
  def access_token
34
- @access_token ||= `gcloud auth application-default print-access-token`.strip
34
+ ENV.fetch("GOOGLE_OAUTH_ACCESS_TOKEN") do
35
+ `gcloud auth application-default print-access-token`.strip
36
+ end
35
37
  end
36
38
  end
37
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-llm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mo khan