Commit Graph

28549 Commits (4329d94de3a71803db177ee50af68eb75d7ea06b)
 

Author SHA1 Message Date
Peter Steinberger deb212d3b0
fix(openai): tighten gpt chat action turns 8 months ago
Peter Steinberger 259338565a
test: normalize minimax provider timeout formatting 8 months ago
Peter Steinberger 59a243e46b
test: stabilize provider discovery matrix cases 8 months ago
Peter Steinberger d0afdb56ce
fix: honor minimax api host during provider discovery 8 months ago
Peter Steinberger bc7f845714
test: speed up focused pi-tools tool tests 8 months ago
Peter Steinberger dbcd35f6c2
test: decouple pi-tools params test imports 8 months ago
wirjo 78fe96f2d4
feat(bedrock): add inference profile discovery and region injection (#61299)
* feat(bedrock): add inference profile discovery and region injection

Inference profiles (cross-region and application) work with ConverseStream
but require the SDK client region to match the profile region. Without
this, users get "The provided model identifier is invalid" errors when
using cross-region profiles like us.anthropic.claude-sonnet-4-6.

Changes:

1. Inference profile discovery (discovery.ts):
   - Call ListInferenceProfiles alongside ListFoundationModels (parallel)
   - Inference profiles INHERIT capabilities from their underlying
     foundation model (modalities, reasoning, context window, cost)
   - resolveBaseModelId() maps profile → foundation model:
     "us.anthropic.claude-sonnet-4-6" → "anthropic.claude-sonnet-4-6"
     Application ARNs → extract model ID from models[].modelArn
   - Graceful degradation if IAM lacks bedrock:ListInferenceProfiles
   - Provider filter applies to profiles via underlying model ARNs

2. Region injection (register.sync.runtime.ts):
   - Extract region from provider baseUrl or bedrockDiscovery.region
   - Pass through to pi-ai options.region in wrapStreamFn
   - Ensures SDK client connects to correct regional endpoint

3. Inference profile model detection (anthropic-family-cache-semantics.ts):
   - isAnthropicBedrockModel() now recognizes application inference
     profile ARNs (arn:aws:bedrock:...:application-inference-profile/*)

4. Tests (discovery.test.ts):
   - New: inference profile inheritance test (4 models: 1 foundation +
     3 profiles, verifies capability inheritance, inactive filtering)
   - New: graceful AccessDeniedException handling test
   - Updated: all existing tests for dual-API discovery pattern

Fixes #55642

* fix(bedrock): preserve inference profile model lookup

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
8 months ago
Vincent Koc 5f6ba749ff fix(test): restore thread-first vitest defaults 8 months ago
Peter Steinberger b9d26fd1a4
docs: add arabic locale scaffolding 8 months ago
Peter Steinberger 996dccb19c
feat(agents): add structured execution item events 8 months ago
Peter Steinberger 3b7e6152d1
fix: retry reasoning-required compaction with minimal thinking 8 months ago
Vincent Koc c9e505f54a docs(changelog): sort and verify new entries 8 months ago
Peter Steinberger 8ad6dd92d7
ci: retrigger stalled main workflow 8 months ago
Mariano 4175caee6e
fix(agents): suppress commentary-phase output leaks (#61282)
Merged via squash.

Prepared head SHA: e392904f73ebe0ff03bab728754c53e7ff680367
Co-authored-by: mbelinky <132747814+mbelinky@users.noreply.github.com>
Co-authored-by: mbelinky <132747814+mbelinky@users.noreply.github.com>
Reviewed-by: @mbelinky
8 months ago
Peter Steinberger 1bf5339b98
fix(gateway): pin startup channel registry 8 months ago
Peter Steinberger 283a6c65b7
ci: clone docs mirror without checkout api 8 months ago
Peter Steinberger 7fc3b22f53 fix: update changelog for Slack DM live reply routing (#59030) (thanks @afurm) 8 months ago
Andrii Furmanets 379f0d78e6 Slack: route live DM replies to channel 8 months ago
Peter Steinberger 25da786c68
docs: add generated locale picker support 8 months ago
Vincent Koc cfe66c6e02 test(contracts): guard config footprint regressions 8 months ago
Peter Steinberger fef155cdbc
fix: tighten file tool schemas for openai 8 months ago
Vincent Koc 63db3443f1 fix(plugin-sdk): prefer canonical private-network opt-in 8 months ago
Peter Steinberger 0f58cef75e
fix: finalize facade re-entry landing cleanup (#61180) (thanks @adam91holt) 8 months ago
Peter Steinberger 66c047ddc3
fix: refresh facade re-entry landing delta (#61180) (thanks @adam91holt) 8 months ago
Adam Holt 3a957cfe8b
fix: resolve circular re-entry in facade module loading
resolveTrackedFacadePluginId triggers config loading (plugin auto-enable,
channel discovery) which can re-enter loadBundledPluginPublicSurfaceModuleSync
for the same module. Because the sentinel was still empty at that point,
re-entrant callers saw undefined exports (e.g. shouldNormalizeGoogleProviderConfig).

Move Object.assign(sentinel, loaded) before the plugin ID resolution so any
re-entrant lookup through the cached sentinel finds the real exports.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
8 months ago
Vincent Koc c5f69111ce docs(changelog): sort unreleased entries alphabetically 8 months ago
Vincent Koc 440428889e docs: add missing contributor attribution to Unreleased changelog entries 8 months ago
Peter Steinberger dbfd96f4ec
docs: move ja-JP output to publish repo 8 months ago
Peter Steinberger 495ebd28a4
fix(ci): route zai endpoint constants through plugin sdk 8 months ago
Peter Steinberger 064f474ed7
test: isolate anthropic vertex provider env cases 8 months ago
Vincent Koc fd0cc90427
fix(plugin-sdk): resolve facade post-load re-entry (#61286) 8 months ago
Peter Steinberger 4559ece355
fix(ci): align test fixtures with current runner types 8 months ago
Chunyue Wang 8c1ca1f245
fix(cron): remove OpenAPI 3.0 incompatible JSON Schema keywords from cron tool (#61221)
The cron tool schema used type arrays (['string','null']), the 'not'
keyword, and 'const' — all unsupported by the OpenAPI 3.0 subset that
Gemini-backed providers (e.g. GitHub Copilot) enforce. This caused
HTTP 400 for every request when cron was enabled.

Replace type arrays with scalar types, remove not/const from
CronFailureAlertSchema, and add 'not' to the Gemini unsupported
keywords list as defense-in-depth.

Fixes #61206
8 months ago
Peter Steinberger 359be4eb48
test: simplify runtime cleanup setup imports 8 months ago
Peter Steinberger 2d7ec1b641
refactor: split zai config sdk seam 8 months ago
Peter Steinberger be526d6423
refactor: split provider stream sdk seams 8 months ago
Peter Steinberger 0a21eebf56
fix(openai): keep gpt chat replies concise 8 months ago
Peter Steinberger af81ee9fee
fix(agents): add embedded item lifecycle events 8 months ago
Peter Steinberger 1ad5695aa4
ci: trigger zh-CN refresh on release 8 months ago
Vincent Koc f02e435188
fix(google): support gemini cli personal oauth (#61260)
* fix(google): support gemini cli personal oauth

* Apply suggestion from @greptile-apps[bot]

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* fix(google): prefer gemini settings over auth env fallback

* chore(changelog): format rebased gemini entry

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
8 months ago
Peter Steinberger fd917a471c
test: scope implicit provider discovery harness 8 months ago
Vincent Koc be5a2611b9
test(anthropic): reuse wizard prompter helper (#61280) 8 months ago
Peter Steinberger f2dc241e9d
docs: harden zh-CN translation flow 8 months ago
Vincent Koc 3b84884793
fix(agents): harden host-managed claude-cli auth path (#61276) 8 months ago
Peter Steinberger afca9540bf
fix: add openai responses phase support 8 months ago
Vincent Koc 852e8f7a2a docs: update Claude CLI backend docs for MCP bridge, streaming, and auth changes 8 months ago
Vincent Koc 1d736dcbbc fix(ci): drop unused google prompt cache type 8 months ago
Peter Steinberger e3eb615da8
docs: salvage english docs from translation backlog 8 months ago
Vincent Koc 3fa70f3044
fix(google): support gemini cli 2.5 model ids (#61261)
* fix(google): realign gemini cli model defaults

* fix(google): keep gemini cli defaults while adding 2.5 support

* fix(google): preserve gemini template reasoning flags

* fix(google): fall back to cli templates for gemini 2.5 ids

* fix(google): keep gemini cli 3.1 clones local
8 months ago
Vincent Koc d609f71c9b
fix(feishu): gate reasoning previews to stream sessions (#61271) 8 months ago