| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-04-03 | 1.6 kB | |
| v1.15.1 source code.tar.gz | 2026-04-03 | 70.0 MB | |
| v1.15.1 source code.zip | 2026-04-03 | 70.4 MB | |
| Totals: 3 Items | 140.3 MB | 3 | |
Security
- Bedrock: Block remote HTTP(S) image URL fetching in
_openai_image_part_to_bedrock— onlydata:URLs accepted, preventing SSRF via user-controlled image URLs - Bedrock/PDF: Block remote URL and local file fetching in
PDF.to_bedrock— only base64 data ors3://sources supported, preventing SSRF and local file disclosure
Added
- Hooks:
completion:errorandcompletion:last_attempthandlers now receiveattempt_number,max_attempts, andis_last_attemptas keyword arguments. Old-style handlers remain fully backward-compatible. - Anthropic:
from_provider("anthropic/...")now sets aUser-Agent: instructor/<version>header on the Anthropic client
Fixed
- Anthropic usage: Initialize usage correctly for
ANTHROPIC_REASONING_TOOLSandANTHROPIC_PARALLEL_TOOLSmodes - OpenRouter: Use
reask_md_jsonforOPENROUTER_STRUCTURED_OUTPUTSretries instead ofreask_default(tool-call format) - Templating: Return
kwargsunchanged instead ofNoneinhandle_templatingwhen message list is empty or unrecognized from_openai: AllowMode.JSON_SCHEMAfor the OpenAI provider- Bedrock: Pass through
cachePointdicts in message content unchanged (regression since v1.13.0) - Bedrock: Allow
Mode.MD_JSONinfrom_bedrock - Parallel tools:
ParallelBasegenerator consumed intoListResponsein both sync and async paths, fixingAttributeError
Dependencies
- Bump anthropic 0.76.0 → 0.88.0
- Bump litellm upper bound to ≤1.83.0
- Bump aiohttp 3.13.3 → 3.13.5