Skip to content

Commit a77eeaa

Browse files
committed
Update input.md
1 parent 87cea32 commit a77eeaa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/input.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Some model APIs do not support file URLs at all or for specific file types. In t
112112
- [`OpenAIResponsesModel`][pydantic_ai.models.openai.OpenAIResponsesModel]: All URLs
113113
- [`AnthropicModel`][pydantic_ai.models.anthropic.AnthropicModel]: `DocumentUrl` with media type `text/plain`
114114
- [`GoogleModel`][pydantic_ai.models.google.GoogleModel] using GLA (Gemini Developer API): All URLs except YouTube video URLs and files uploaded to the [Files API](https://ai.google.dev/gemini-api/docs/files).
115-
- [`BedrockConverseModel`][pydantic_ai.models.bedrock.BedrockConverseModel]: All URLs
115+
- [`BedrockConverseModel`][pydantic_ai.models.bedrock.BedrockConverseModel]: All URLs except the ones uploaded to S3, specifically starting with `s3://`.
116116

117117
If the model API supports file URLs but may not be able to download a file because of crawling or access restrictions, you can instruct Pydantic AI to download the file content and send that instead of the URL by enabling the `force_download` flag on the URL object. For example, [`GoogleModel`][pydantic_ai.models.google.GoogleModel] on Vertex AI limits YouTube video URLs to one URL per request.
118118

@@ -138,3 +138,5 @@ result = agent.run_sync(
138138
)
139139
print(result.output)
140140
```
141+
142+
For `BedrockConverseModel`, you can upload a file to S3 and pass the URL to the API directly. Pyadantic AI will pass it to `bedrock` as is. It expects the URL with the format: `s3://<bucket-name>/<object-key>`. An optional `bucketOwner` query parameter can be added to the URL to specify the owner of the bucket. For example: `s3://my-bucket/my-file.png?bucketOwner=123456789012`.

0 commit comments

Comments
 (0)