From 12ff8377089df6d9df783de991d561cdc2df90f4 Mon Sep 17 00:00:00 2001 From: Aarushi Date: Wed, 23 Oct 2024 19:54:51 +0100 Subject: [PATCH] update frontend --- .../frontend/src/components/integrations/credentials-input.tsx | 1 + .../src/components/integrations/credentials-provider.tsx | 3 +++ autogpt_platform/frontend/src/lib/autogpt-server-api/types.ts | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/autogpt_platform/frontend/src/components/integrations/credentials-input.tsx b/autogpt_platform/frontend/src/components/integrations/credentials-input.tsx index ad5bc65a61f4..252eb6fd704f 100644 --- a/autogpt_platform/frontend/src/components/integrations/credentials-input.tsx +++ b/autogpt_platform/frontend/src/components/integrations/credentials-input.tsx @@ -42,6 +42,7 @@ export const providerIcons: Record> = { google: FaGoogle, notion: NotionLogoIcon, jina: FaKey, + pinecone: FaKey, }; // --8<-- [end:ProviderIconsEmbed] diff --git a/autogpt_platform/frontend/src/components/integrations/credentials-provider.tsx b/autogpt_platform/frontend/src/components/integrations/credentials-provider.tsx index f8ce6f53702b..40ad438b929b 100644 --- a/autogpt_platform/frontend/src/components/integrations/credentials-provider.tsx +++ b/autogpt_platform/frontend/src/components/integrations/credentials-provider.tsx @@ -17,6 +17,7 @@ const CREDENTIALS_PROVIDER_NAMES = [ "google", "notion", "jina", + "pinecone", ] as const; export type CredentialsProviderName = @@ -26,6 +27,8 @@ const providerDisplayNames: Record = { github: "GitHub", google: "Google", notion: "Notion", + jina: "Jina", + pinecone: "Pinecone", }; // --8<-- [end:CredentialsProviderNames] diff --git a/autogpt_platform/frontend/src/lib/autogpt-server-api/types.ts b/autogpt_platform/frontend/src/lib/autogpt-server-api/types.ts index 535fd8ffec45..d7ae2a0a8331 100644 --- a/autogpt_platform/frontend/src/lib/autogpt-server-api/types.ts +++ b/autogpt_platform/frontend/src/lib/autogpt-server-api/types.ts @@ -96,7 +96,7 @@ export type CredentialsType = "api_key" | "oauth2"; // --8<-- [start:BlockIOCredentialsSubSchema] export type BlockIOCredentialsSubSchema = BlockIOSubSchemaMeta & { - credentials_provider: "github" | "google" | "notion" | "jina"; + credentials_provider: "github" | "google" | "notion" | "jina" | "pinecone"; credentials_scopes?: string[]; credentials_types: Array; };