• Samrat Jha's avatar
    Add support for Amazon Bedrock provider (#1185) · 938595aa
    Samrat Jha 提交于
    - follows existing patterns for AI SDK to provide Bedrock integration
    - Uses Bedrock's API token feature for authentication which provides a
    standard experience
    - bedrock provided models match the Anthropic provided models (for now)
    
    
    **Disclaimer**: The contributing docs are extremely sparse. I don't
    actually know how to build this and get this running in Electron
    
    
    ## Testing
    
    - AWS Bedrock provider is available for selection
    <img width="994" height="496" alt="image"
    src="https://github.com/user-attachments/assets/3cb21fed-9826-40e5-8019-b2b5df5e873b"
    />
    
    - The provider settings also show the right models and offer the right
    env variable to use
    <img width="949" height="862" alt="image"
    src="https://github.com/user-attachments/assets/8c23d5c8-d84d-4bf7-856a-8dc8d9d6c4b4"
    />
    
    
        
    <!-- This is an auto-generated description by cubic. -->
    ---
    
    ## Summary by cubic
    Adds AWS Bedrock as a provider so users can run Claude models via
    Bedrock with API token authentication. The settings now list Bedrock
    with supported models and a new env var.
    
    - New Features
    - New provider: bedrock using @ai-sdk/amazon-bedrock, wired into model
    client and schemas.
    - Models: Claude 4 Sonnet, Claude 3.7 Sonnet, Claude 3.5 Sonnet (Bedrock
    model IDs).
    - Settings: shows AWS Bedrock with correct models and env var
    AWS_BEARER_TOKEN_BEDROCK.
      - Default region: us-east-1.
    
    - Migration
      - Set AWS_BEARER_TOKEN_BEDROCK with your Bedrock API token.
      - Select AWS Bedrock in settings and pick a model.
    
    <!-- End of auto-generated description by cubic. -->
    Co-authored-by: 's avatarSamrat Jha <samratj@amazon.com>
    Co-authored-by: 's avatarWill Chen <willchen90@gmail.com>
    938595aa
名称
最后提交
最后更新
.cursor/rules 正在载入提交数据...
.devcontainer 正在载入提交数据...
.github 正在载入提交数据...
.husky 正在载入提交数据...
assets 正在载入提交数据...
docs 正在载入提交数据...
drizzle 正在载入提交数据...
e2e-tests 正在载入提交数据...
packages/@dyad-sh 正在载入提交数据...
scaffold 正在载入提交数据...
scripts 正在载入提交数据...
shared 正在载入提交数据...
src 正在载入提交数据...
testing/fake-llm-server 正在载入提交数据...
tools 正在载入提交数据...
worker 正在载入提交数据...
workers/tsc 正在载入提交数据...
.cursorignore 正在载入提交数据...
.env.example 正在载入提交数据...
.eslintrc.json 正在载入提交数据...
.gitattributes 正在载入提交数据...
.gitignore 正在载入提交数据...
.oxlintrc.json 正在载入提交数据...
.prettierignore 正在载入提交数据...
.prettierrc 正在载入提交数据...
CONTRIBUTING.md 正在载入提交数据...
LICENSE 正在载入提交数据...
README.md 正在载入提交数据...
SECURITY.md 正在载入提交数据...
biome.json 正在载入提交数据...
components.json 正在载入提交数据...
drizzle.config.ts 正在载入提交数据...
forge.config.ts 正在载入提交数据...
forge.env.d.ts 正在载入提交数据...
index.html 正在载入提交数据...
merge.config.ts 正在载入提交数据...
package-lock.json 正在载入提交数据...
package.json 正在载入提交数据...
playwright.config.ts 正在载入提交数据...
tsconfig.app.json 正在载入提交数据...
tsconfig.json 正在载入提交数据...
tsconfig.node.json 正在载入提交数据...
vite.main.config.mts 正在载入提交数据...
vite.preload.config.mts 正在载入提交数据...
vite.renderer.config.mts 正在载入提交数据...
vite.worker.config.mts 正在载入提交数据...
vitest.config.ts 正在载入提交数据...