MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / new

Method new

crates/opencode-provider/src/bedrock.rs:30–42  ·  view source on GitHub ↗
(
        region: impl Into<String>,
        access_key_id: impl Into<String>,
        secret_access_key: impl Into<String>,
    )

Source from the content-addressed store, hash-verified

28
29impl BedrockProvider {
30 pub fn new(
31 region: impl Into<String>,
32 access_key_id: impl Into<String>,
33 secret_access_key: impl Into<String>,
34 ) -> Self {
35 Self::with_config(BedrockConfig {
36 region: region.into(),
37 access_key_id: access_key_id.into(),
38 secret_access_key: secret_access_key.into(),
39 session_token: None,
40 endpoint_url: None,
41 })
42 }
43
44 pub fn with_config(config: BedrockConfig) -> Self {
45 let models = vec![

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected