Download codex-rs/app-server-protocol/src/protocol/v2/bedrock.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 2 kB
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/app-server-protocol/src/protocol/v2/bedrock.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/app-server-protocol/src/protocol/v2/bedrock.rs
-
curl -L -o bedrock.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/app-server-protocol/src/protocol/v2/bedrock.rs
2 kB
| use crate::JsonSchema; | |
| use crate::TS; | |
| use serde::Deserialize; | |
| use serde::Serialize; | |
| pub struct BedrockDiscoverParams {} | |
| pub struct BedrockDiscoverResponse { | |
| pub profiles: Vec<BedrockAwsProfile>, | |
| pub environment_credentials: Vec<BedrockEnvironmentCredential>, | |
| } | |
| pub struct BedrockAwsProfile { | |
| pub name: String, | |
| pub region: Option<String>, | |
| } | |
| pub struct BedrockEnvironmentCredential { | |
| pub credential_type: AwsCredentialType, | |
| pub region: Option<String>, | |
| } | |
| pub enum AwsCredentialType { | |
| AccessKeys, | |
| BedrockApiKey, | |
| } | |
| pub enum BedrockSetupParams { | |
| Profile { profile: String, region: String }, | |
| Environment { region: String }, | |
| } | |
| pub struct BedrockSetupResponse {} | |