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 +4 -4
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +7 -0
- data/docs/providers/GOOGLE_CLOUD.md +1 -1
- data/lib/riffer/providers/anthropic_compatible/messages_api.rb +1 -1
- data/lib/riffer/providers/anthropic_vertex.rb +7 -0
- data/lib/riffer/version.rb +1 -1
- data/sig/generated/riffer/providers/anthropic_vertex.rbs +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 413379b400d10372b4eb673675c999aed843ebfb22cd7de813f51ddae08a7694
|
|
4
|
+
data.tar.gz: 724816e163e06e211531cba968f9e53411fa0d1efd2b9e979d540046354caacd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 29444cee33ea8877b2b5d749f19d46bb87440b51c68e117a5dd70ce3f204ec98949a76e7b0b9212e0454da216832ceb99614cc115d5662ee6d7b2299f15ce44e
|
|
7
|
+
data.tar.gz: 308a9191574b0a850d5231e5470f6b0b07c6c3c307c6ed79a3877d158bc8b8c149977d7b4f3ac2a1f75dcedceef13a501abcca7630172f555929aa5841f0fe6f
|
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
|
#--
|
data/lib/riffer/version.rb
CHANGED
|
@@ -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
|
# --
|