Add new Icons - Postgres, Redis, Azure IA, Ollama (#1481)
This commit is contained in:
commit
1a0d9f3077
15 changed files with 318 additions and 2 deletions
|
|
@ -9,6 +9,7 @@ class AzureOpenAIEmbeddingsComponent(CustomComponent):
|
|||
description: str = "Embeddings model from Azure OpenAI."
|
||||
documentation: str = "https://python.langchain.com/docs/integrations/text_embedding/azureopenai"
|
||||
beta = False
|
||||
icon = "Azure"
|
||||
|
||||
API_VERSION_OPTIONS = [
|
||||
"2022-12-01",
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ class AzureChatOpenAISpecsComponent(CustomComponent):
|
|||
description: str = "LLM model from Azure OpenAI."
|
||||
documentation: str = "https://python.langchain.com/docs/integrations/llms/azure_openai"
|
||||
beta = False
|
||||
icon = "Azure"
|
||||
|
||||
AZURE_OPENAI_MODELS = [
|
||||
"gpt-35-turbo",
|
||||
|
|
|
|||
61
src/frontend/src/icons/Azure/Azure.jsx
Normal file
61
src/frontend/src/icons/Azure/Azure.jsx
Normal file
File diff suppressed because one or more lines are too long
8
src/frontend/src/icons/Azure/index.tsx
Normal file
8
src/frontend/src/icons/Azure/index.tsx
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import React, { forwardRef } from "react";
|
||||
import SvgAzure from "./Azure";
|
||||
|
||||
export const AzureIcon = forwardRef<SVGSVGElement, React.PropsWithChildren<{}>>(
|
||||
(props, ref) => {
|
||||
return <SvgAzure ref={ref} {...props} />;
|
||||
}
|
||||
);
|
||||
64
src/frontend/src/icons/Ollama/Ollama.jsx
Normal file
64
src/frontend/src/icons/Ollama/Ollama.jsx
Normal file
File diff suppressed because one or more lines are too long
1
src/frontend/src/icons/Ollama/Ollama.svg
Normal file
1
src/frontend/src/icons/Ollama/Ollama.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 122 KiB |
9
src/frontend/src/icons/Ollama/index.tsx
Normal file
9
src/frontend/src/icons/Ollama/index.tsx
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import React, { forwardRef } from "react";
|
||||
import SvgOllama from "./Ollama";
|
||||
|
||||
export const OllamaIcon = forwardRef<
|
||||
SVGSVGElement,
|
||||
React.PropsWithChildren<{}>
|
||||
>((props, ref) => {
|
||||
return <SvgOllama ref={ref} {...props} />;
|
||||
});
|
||||
67
src/frontend/src/icons/Postgres/Postgres.jsx
Normal file
67
src/frontend/src/icons/Postgres/Postgres.jsx
Normal file
File diff suppressed because one or more lines are too long
1
src/frontend/src/icons/Postgres/Postgres.svg
Normal file
1
src/frontend/src/icons/Postgres/Postgres.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 273 KiB |
9
src/frontend/src/icons/Postgres/index.tsx
Normal file
9
src/frontend/src/icons/Postgres/index.tsx
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import React, { forwardRef } from "react";
|
||||
import SvgPostgres from "./Postgres";
|
||||
|
||||
export const PostgresIcon = forwardRef<
|
||||
SVGSVGElement,
|
||||
React.PropsWithChildren<{}>
|
||||
>((props, ref) => {
|
||||
return <SvgPostgres ref={ref} {...props} />;
|
||||
});
|
||||
67
src/frontend/src/icons/Redis/Redis.jsx
Normal file
67
src/frontend/src/icons/Redis/Redis.jsx
Normal file
File diff suppressed because one or more lines are too long
1
src/frontend/src/icons/Redis/Redis.svg
Normal file
1
src/frontend/src/icons/Redis/Redis.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 304 KiB |
8
src/frontend/src/icons/Redis/index.tsx
Normal file
8
src/frontend/src/icons/Redis/index.tsx
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import React, { forwardRef } from "react";
|
||||
import { SvgRedis } from "./Redis";
|
||||
|
||||
export const RedisIcon = forwardRef<SVGSVGElement, React.PropsWithChildren<{}>>(
|
||||
(props, ref) => {
|
||||
return <SvgRedis ref={ref} {...props} />;
|
||||
}
|
||||
);
|
||||
|
|
@ -488,4 +488,4 @@ export default function Page({
|
|||
</main>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
@ -125,10 +125,11 @@ import {
|
|||
XCircle,
|
||||
Zap,
|
||||
} from "lucide-react";
|
||||
import { FaApple, FaGithub } from "react-icons/fa";
|
||||
import { FaApple, FaGithub, FaRobot } from "react-icons/fa";
|
||||
import { AWSIcon } from "../icons/AWS";
|
||||
import { AirbyteIcon } from "../icons/Airbyte";
|
||||
import { AnthropicIcon } from "../icons/Anthropic";
|
||||
import { AzureIcon } from "../icons/Azure";
|
||||
import { BingIcon } from "../icons/Bing";
|
||||
import { ChromaIcon } from "../icons/ChromaIcon";
|
||||
import { CohereIcon } from "../icons/Cohere";
|
||||
|
|
@ -148,9 +149,12 @@ import { MetaIcon } from "../icons/Meta";
|
|||
import { MidjourneyIcon } from "../icons/Midjorney";
|
||||
import { MongoDBIcon } from "../icons/MongoDB";
|
||||
import { NotionIcon } from "../icons/Notion";
|
||||
import { OllamaIcon } from "../icons/Ollama";
|
||||
import { OpenAiIcon } from "../icons/OpenAi";
|
||||
import { PineconeIcon } from "../icons/Pinecone";
|
||||
import { PostgresIcon } from "../icons/Postgres";
|
||||
import { QDrantIcon } from "../icons/QDrant";
|
||||
import { RedisIcon } from "../icons/Redis";
|
||||
import { SearxIcon } from "../icons/Searx";
|
||||
import { ShareIcon } from "../icons/Share";
|
||||
import { Share2Icon } from "../icons/Share2";
|
||||
|
|
@ -254,6 +258,20 @@ export const nodeNames: { [char: string]: string } = {
|
|||
};
|
||||
|
||||
export const nodeIconsLucide: iconsType = {
|
||||
AzureChatOpenAi: AzureIcon,
|
||||
Ollama: OllamaIcon,
|
||||
ChatOllama: OllamaIcon,
|
||||
AzureOpenAiEmbeddings: AzureIcon,
|
||||
Azure: AzureIcon,
|
||||
OllamaEmbeddings: OllamaIcon,
|
||||
ChatOllamaModel: OllamaIcon,
|
||||
Faiss: MetaIcon,
|
||||
FaissSearch: MetaIcon,
|
||||
AzureOpenAiModel: AzureIcon,
|
||||
Redis: RedisIcon,
|
||||
RedisSearch: RedisIcon,
|
||||
PostgresChatMessageHistory: PostgresIcon,
|
||||
BaiduQianfan: FaRobot,
|
||||
Play,
|
||||
Vectara: VectaraIcon,
|
||||
ArrowUpToLine: ArrowUpToLine,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue