From b666fc6bd24a039d2d23a312fa453d0fe3ed79ab Mon Sep 17 00:00:00 2001 From: sigoden Date: Tue, 21 Jan 2025 21:45:20 +0800 Subject: refactor: optimize configuration initialization (#1110) --- src/client/bedrock.rs | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'src/client/bedrock.rs') diff --git a/src/client/bedrock.rs b/src/client/bedrock.rs index 7cd289c..435aa57 100644 --- a/src/client/bedrock.rs +++ b/src/client/bedrock.rs @@ -31,19 +31,9 @@ impl BedrockClient { config_get_fn!(region, get_region); pub const PROMPTS: [PromptAction<'static>; 3] = [ - ( - "access_key_id", - "AWS Access Key ID", - true, - PromptKind::String, - ), - ( - "secret_access_key", - "AWS Secret Access Key", - true, - PromptKind::String, - ), - ("region", "AWS Region", true, PromptKind::String), + ("access_key_id", "AWS Access Key ID", None), + ("secret_access_key", "AWS Secret Access Key", None), + ("region", "AWS Region", None), ]; fn chat_completions_builder( -- cgit v1.2.3