Skip to content

Commit

Permalink
Add fix for credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastjanPrachovskij committed Oct 14, 2024
1 parent c6dbc33 commit 6753b26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/blocks/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
};
Expand Down
1 change: 1 addition & 0 deletions types/src/front/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6753b26

Please sign in to comment.