diff --git a/core/src/blocks/search.rs b/core/src/blocks/search.rs index 38b9f7ab7025..224aafbc7cf5 100644 --- a/core/src/blocks/search.rs +++ b/core/src/blocks/search.rs @@ -203,7 +203,7 @@ impl Block for Search { let query = replace_variables_in_string(&self.query, "query", env)?; let credential_key = match provider_id { - SearchProviderID::SearchApi => "SEARCH_API_KEY", + SearchProviderID::SearchApi => "SEARCHAPI_API_KEY", SearchProviderID::SerpAPI => "SERP_API_KEY", SearchProviderID::Serper => "SERPER_API_KEY", }; diff --git a/types/src/front/provider.ts b/types/src/front/provider.ts index 920c1b2755da..bc3bd6283796 100644 --- a/types/src/front/provider.ts +++ b/types/src/front/provider.ts @@ -12,6 +12,7 @@ export type CredentialsType = { ANTHROPIC_API_KEY?: string; MISTRAL_API_KEY?: string; TEXTSYNTH_API_KEY?: string; + SEARCHAPI_API_KEY?: string; SERP_API_KEY?: string; SERPER_API_KEY?: string; BROWSERLESS_API_KEY?: string;