riffer 0.57.0 → 0.57.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab1324017f5d8669c50fc05d8c61af4a473a4b9d7fbb5e1a10e60f44d4028ed5
4
- data.tar.gz: 1d50b24d3ae9cde461ccad3ecffd90554a94e4dec8d2664a4325d58b89fcb58c
3
+ metadata.gz: 413379b400d10372b4eb673675c999aed843ebfb22cd7de813f51ddae08a7694
4
+ data.tar.gz: 724816e163e06e211531cba968f9e53411fa0d1efd2b9e979d540046354caacd
5
5
  SHA512:
6
- metadata.gz: 9b07e31b31a5c129042f88a418d448e56c8e9d60805b8ff5221a509d7d0ea0cb1b197a459c865442df8595f2ee002c28e859c6943be8a88efa60e37ce3edc57f
7
- data.tar.gz: 0d0b186db8324f5932a4913cf6e33cbcab16fa49fda3b9e2a3f5ad88cf626bacb4c29c1523c9e7a4a4f832244766fcf99935e83a1c8c910cb374fd6f063bf3d1
6
+ metadata.gz: 29444cee33ea8877b2b5d749f19d46bb87440b51c68e117a5dd70ce3f204ec98949a76e7b0b9212e0454da216832ceb99614cc115d5662ee6d7b2299f15ce44e
7
+ data.tar.gz: 308a9191574b0a850d5231e5470f6b0b07c6c3c307c6ed79a3877d158bc8b8c149977d7b4f3ac2a1f75dcedceef13a501abcca7630172f555929aa5841f0fe6f
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.57.0"
2
+ ".": "0.57.1"
3
3
  }
data/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.57.1](https://github.com/janeapp/riffer/compare/riffer/v0.57.0...riffer/v0.57.1) (2026-11-13)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **anthropic_vertex:** download URL files and add anthropic_vertex to the acceptance suite ([#585](https://github.com/janeapp/riffer/issues/585)) ([1aef911](https://github.com/janeapp/riffer/commit/1aef9115a8c68b5ab1a4e9c670c65590f5e75238))
14
+
8
15
  ## [0.57.0](https://github.com/janeapp/riffer/compare/riffer/v0.56.0...riffer/v0.57.0) (2026-11-13)
9
16
 
10
17
 
@@ -358,7 +358,7 @@ Claude models on Agent Platform behave as they do on the Anthropic provider:
358
358
  - **Tags:** only the reserved `user_id` tag is sent, as `metadata.user_id`.
359
359
  - **Incomplete streams:** a stream that ends without a `message_stop` event raises `Riffer::IncompleteStreamError`.
360
360
 
361
- `anthropic_vertex` never reads `config.anthropic` or `ANTHROPIC_API_KEY`. Files are sent inline as base64.
361
+ `anthropic_vertex` never reads `config.anthropic` or `ANTHROPIC_API_KEY`. Files are sent inline as base64. Agent Platform rejects URL sources, so riffer downloads a `FilePart.from_url` source and sends it inline, subject to the `allow_downloads` policy in [File Downloads](../CONFIGURATION.md#file-downloads).
362
362
 
363
363
  Web search and structured output are partner-model features that an organization policy can turn off. If a request fails with a `constraints/vertexai.allowedPartnerModelFeatures` violation, an organization policy administrator must allow `publishers/anthropic/models/MODEL:web_search` or `:structured_outputs` (or `publishers/anthropic` for every feature); see [Control access to Model Garden models](https://docs.cloud.google.com/vertex-ai/generative-ai/docs/control-model-access).
364
364
 
@@ -370,7 +370,7 @@ class Riffer::Providers::AnthropicCompatible::MessagesAPI < Riffer::Providers::B
370
370
  def convert_file_part(file)
371
371
  type = file.image? ? "image" : "document"
372
372
 
373
- source = if file.url?
373
+ source = if file.url? && file_delivery(file) == :url
374
374
  { type: "url", url: file.url }
375
375
  else
376
376
  { type: "base64", media_type: file.media_type, data: file.data }
@@ -17,6 +17,13 @@ class Riffer::Providers::AnthropicVertex < Riffer::Providers::AnthropicCompatibl
17
17
  "gcp.vertex_ai"
18
18
  end
19
19
 
20
+ # Agent Platform rejects URL sources, so riffer downloads the file and sends it inline.
21
+ #--
22
+ #: (Riffer::Messages::User::FilePart) -> Symbol
23
+ def file_delivery(_file)
24
+ :base64
25
+ end
26
+
20
27
  private
21
28
 
22
29
  #--
@@ -2,5 +2,5 @@
2
2
  # rbs_inline: enabled
3
3
 
4
4
  module Riffer
5
- VERSION = "0.57.0" #: String
5
+ VERSION = "0.57.1" #: String
6
6
  end
@@ -14,6 +14,11 @@ class Riffer::Providers::AnthropicVertex < Riffer::Providers::AnthropicCompatibl
14
14
  # : () -> String
15
15
  def self.semconv_provider_name: () -> String
16
16
 
17
+ # Agent Platform rejects URL sources, so riffer downloads the file and sends it inline.
18
+ # --
19
+ # : (Riffer::Messages::User::FilePart) -> Symbol
20
+ def file_delivery: (Riffer::Messages::User::FilePart) -> Symbol
21
+
17
22
  private
18
23
 
19
24
  # --
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riffer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.57.0
4
+ version: 0.57.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Bottrall