From a5f59ac838bf46d72af2a23c17e8ed38824b96a4 Mon Sep 17 00:00:00 2001 From: canisminor1990 Date: Wed, 28 Aug 2024 11:08:52 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20Update=20Qwen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +- src/ModelIcon/const.ts | 4 +- src/ProviderCombine/const.tsx | 4 +- src/ProviderIcon/const.ts | 4 +- src/{Tongyi => Qwen}/components/Avatar.tsx | 0 src/{Tongyi => Qwen}/components/Color.tsx | 0 src/{Tongyi => Qwen}/components/Combine.tsx | 0 src/{Tongyi => Qwen}/components/Mono.tsx | 0 src/Qwen/components/Text.tsx | 25 +++++++ src/Qwen/index.md | 74 ++++++++++++++++++++ src/{Tongyi => Qwen}/index.ts | 0 src/{Tongyi => Qwen}/style.ts | 2 +- src/Tongyi/components/Text.tsx | 25 ------- src/Tongyi/index.md | 75 --------------------- src/index.ts | 3 +- 15 files changed, 111 insertions(+), 111 deletions(-) rename src/{Tongyi => Qwen}/components/Avatar.tsx (100%) rename src/{Tongyi => Qwen}/components/Color.tsx (100%) rename src/{Tongyi => Qwen}/components/Combine.tsx (100%) rename src/{Tongyi => Qwen}/components/Mono.tsx (100%) create mode 100644 src/Qwen/components/Text.tsx create mode 100644 src/Qwen/index.md rename src/{Tongyi => Qwen}/index.ts (100%) rename src/{Tongyi => Qwen}/style.ts (84%) delete mode 100644 src/Tongyi/components/Text.tsx delete mode 100644 src/Tongyi/index.md diff --git a/README.md b/README.md index f05abdaa..d9688390 100644 --- a/README.md +++ b/README.md @@ -61,9 +61,9 @@ Contributions, corrections & requests can be made on GitHub. -| Model | Provider | Application | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| ✅ [Ai21Labs (Jamba)](https://icons.lobehub.com/components/ai-21)
✅ [Baichuan (百川)](https://icons.lobehub.com/components/baichuan)
✅ [Claude](https://icons.lobehub.com/components/claude)
✅ [CodeGeeX](https://icons.lobehub.com/components/code-gee-x)
✅ [Cohere (Aya)](https://icons.lobehub.com/components/aya)
✅ [Databricks (DBRX)](https://icons.lobehub.com/components/dbrx)
✅ [DeepSeek](https://icons.lobehub.com/components/deep-seek)
✅ [Doubao (豆包)](https://icons.lobehub.com/components/doubao)
✅ [FishAudio (Bert)](https://icons.lobehub.com/components/fish-audio)
✅ [Google (Gemini)](https://icons.lobehub.com/components/gemini)
✅ [Google (Gemma)](https://icons.lobehub.com/components/gemma)
✅ [Grok](https://icons.lobehub.com/components/grok)
✅ [Hunyuan (腾讯混元)](https://icons.lobehub.com/components/hunyuan)
✅ [LLaVA](https://icons.lobehub.com/components/l-la-va)
✅ [Minimax](https://icons.lobehub.com/components/minimax)
✅ [Mistral](https://icons.lobehub.com/components/mistral)
✅ [OpenAI (DALL·E)](https://icons.lobehub.com/components/dalle)
✅ [OpenChat](https://icons.lobehub.com/components/open-chat)
✅ [RWKV](https://icons.lobehub.com/components/rwkv)
✅ [Spark (讯飞星火)](https://icons.lobehub.com/components/spark)
✅ [Stepfun (阶跃星辰)](https://icons.lobehub.com/components/stepfun)
✅ [Tongyi (通义)](https://icons.lobehub.com/components/tongyi)
✅ [Wenxin (文心)](https://icons.lobehub.com/components/wenxin)
✅ [Yi (零一万物)](https://icons.lobehub.com/components/yi)
✅ [Zhipu (ChatGLM)](https://icons.lobehub.com/components/chat-glm) | ✅ [01.AI (零一万物)](https://icons.lobehub.com/components/zero-one)
✅ [Ai360 (360 智脑)](https://icons.lobehub.com/components/ai-360)
✅ [AiMass (紫东太初)](https://icons.lobehub.com/components/ai-mass)
✅ [Alibaba](https://icons.lobehub.com/components/alibaba)
✅ [AntGroup](https://icons.lobehub.com/components/ant-group)
✅ [Anthropic](https://icons.lobehub.com/components/anthropic)
✅ [AWS](https://icons.lobehub.com/components/aws)
✅ [AWS (Bedrock)](https://icons.lobehub.com/components/bedrock)
✅ [Baidu](https://icons.lobehub.com/components/baidu)
✅ [ByteDance](https://icons.lobehub.com/components/byte-dance)
✅ [Cloudflare](https://icons.lobehub.com/components/cloudflare)
✅ [Cloudflare (WorkersAI)](https://icons.lobehub.com/components/workers-ai)
✅ [Cohere (Command)](https://icons.lobehub.com/components/cohere)
✅ [Fireworks](https://icons.lobehub.com/components/fireworks)
✅ [Google](https://icons.lobehub.com/components/google)
✅ [Google(DeepMind)](https://icons.lobehub.com/components/deep-mind)
✅ [Groq](https://icons.lobehub.com/components/groq)
✅ [HuggingFace](https://icons.lobehub.com/components/hugging-face)
✅ [InternLM](https://icons.lobehub.com/components/intern-lm)
✅ [LM Studio](https://icons.lobehub.com/components/lm-studio)
✅ [LobeHub](https://icons.lobehub.com/components/lobe-hub)
✅ [Meta](https://icons.lobehub.com/components/meta)
✅ [Microsoft (Azure)](https://icons.lobehub.com/components/azure)
✅ [Moonshot (月之暗面)](https://icons.lobehub.com/components/moonshot)
✅ [Novita](https://icons.lobehub.com/components/novita)
✅ [Ollama](https://icons.lobehub.com/components/ollama)
✅ [OpenAI (ChatGPT)](https://icons.lobehub.com/components/open-ai)
✅ [OpenRouter](https://icons.lobehub.com/components/open-router)
✅ [Perplexity](https://icons.lobehub.com/components/perplexity)
✅ [Replicate](https://icons.lobehub.com/components/replicate)
✅ [SiliconCloud (SiliconFlow)](https://icons.lobehub.com/components/silicon-cloud)
✅ [Stability (StableDiffusion)](https://icons.lobehub.com/components/stability)
✅ [Tencent](https://icons.lobehub.com/components/tencent)
✅ [together.ai](https://icons.lobehub.com/components/together)
✅ [vLLM](https://icons.lobehub.com/components/vllm)
✅ [Zeabur](https://icons.lobehub.com/components/zeabur)
✅ [Zhipu (智谱)](https://icons.lobehub.com/components/zhipu) | ✅ [Adobe](https://icons.lobehub.com/components/adobe)
✅ [Adobe (Firefly)](https://icons.lobehub.com/components/adobe-firefly)
✅ [Automatic1111 (SD Webui)](https://icons.lobehub.com/components/automatic)
✅ [Github](https://icons.lobehub.com/components/github)
✅ [Github Copilot](https://icons.lobehub.com/components/github-copilot)
✅ [Google (Colab)](https://icons.lobehub.com/components/colab)
✅ [Langfuse](https://icons.lobehub.com/components/langfuse)
✅ [Microsoft Copilot](https://icons.lobehub.com/components/copilot)
✅ [Midjourney](https://icons.lobehub.com/components/midjourney)
✅ [Nvidia (ChatWithRTX)](https://icons.lobehub.com/components/nvidia)
✅ [Pollinations](https://icons.lobehub.com/components/pollinations)
✅ [Qingyan (智谱清言)](https://icons.lobehub.com/components/qingyan)
✅ [Suno](https://icons.lobehub.com/components/suno) | +| Model | Provider | Application | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ✅ [Ai21Labs (Jamba)](https://icons.lobehub.com/components/ai-21)
✅ [Baichuan (百川)](https://icons.lobehub.com/components/baichuan)
✅ [Claude](https://icons.lobehub.com/components/claude)
✅ [CodeGeeX](https://icons.lobehub.com/components/code-gee-x)
✅ [Cohere (Aya)](https://icons.lobehub.com/components/aya)
✅ [Databricks (DBRX)](https://icons.lobehub.com/components/dbrx)
✅ [DeepSeek](https://icons.lobehub.com/components/deep-seek)
✅ [Doubao (豆包)](https://icons.lobehub.com/components/doubao)
✅ [FishAudio (Bert)](https://icons.lobehub.com/components/fish-audio)
✅ [Google (Gemini)](https://icons.lobehub.com/components/gemini)
✅ [Google (Gemma)](https://icons.lobehub.com/components/gemma)
✅ [Grok](https://icons.lobehub.com/components/grok)
✅ [Hunyuan (腾讯混元)](https://icons.lobehub.com/components/hunyuan)
✅ [LLaVA](https://icons.lobehub.com/components/l-la-va)
✅ [Minimax](https://icons.lobehub.com/components/minimax)
✅ [Mistral](https://icons.lobehub.com/components/mistral)
✅ [OpenAI (DALL·E)](https://icons.lobehub.com/components/dalle)
✅ [OpenChat](https://icons.lobehub.com/components/open-chat)
✅ [Qwen (千问)](https://icons.lobehub.com/components/qwen)
✅ [RWKV](https://icons.lobehub.com/components/rwkv)
✅ [Spark (讯飞星火)](https://icons.lobehub.com/components/spark)
✅ [Stepfun (阶跃星辰)](https://icons.lobehub.com/components/stepfun)
✅ [Wenxin (文心)](https://icons.lobehub.com/components/wenxin)
✅ [Yi (零一万物)](https://icons.lobehub.com/components/yi)
✅ [Zhipu (ChatGLM)](https://icons.lobehub.com/components/chat-glm) | ✅ [01.AI (零一万物)](https://icons.lobehub.com/components/zero-one)
✅ [Ai360 (360 智脑)](https://icons.lobehub.com/components/ai-360)
✅ [AiMass (紫东太初)](https://icons.lobehub.com/components/ai-mass)
✅ [Alibaba](https://icons.lobehub.com/components/alibaba)
✅ [AntGroup](https://icons.lobehub.com/components/ant-group)
✅ [Anthropic](https://icons.lobehub.com/components/anthropic)
✅ [AWS](https://icons.lobehub.com/components/aws)
✅ [AWS (Bedrock)](https://icons.lobehub.com/components/bedrock)
✅ [Baidu](https://icons.lobehub.com/components/baidu)
✅ [ByteDance](https://icons.lobehub.com/components/byte-dance)
✅ [Cloudflare](https://icons.lobehub.com/components/cloudflare)
✅ [Cloudflare (WorkersAI)](https://icons.lobehub.com/components/workers-ai)
✅ [Cohere (Command)](https://icons.lobehub.com/components/cohere)
✅ [Fireworks](https://icons.lobehub.com/components/fireworks)
✅ [Google](https://icons.lobehub.com/components/google)
✅ [Google(DeepMind)](https://icons.lobehub.com/components/deep-mind)
✅ [Groq](https://icons.lobehub.com/components/groq)
✅ [HuggingFace](https://icons.lobehub.com/components/hugging-face)
✅ [InternLM](https://icons.lobehub.com/components/intern-lm)
✅ [LM Studio](https://icons.lobehub.com/components/lm-studio)
✅ [LobeHub](https://icons.lobehub.com/components/lobe-hub)
✅ [Meta](https://icons.lobehub.com/components/meta)
✅ [Microsoft (Azure)](https://icons.lobehub.com/components/azure)
✅ [Moonshot (月之暗面)](https://icons.lobehub.com/components/moonshot)
✅ [Novita](https://icons.lobehub.com/components/novita)
✅ [Ollama](https://icons.lobehub.com/components/ollama)
✅ [OpenAI (ChatGPT)](https://icons.lobehub.com/components/open-ai)
✅ [OpenRouter](https://icons.lobehub.com/components/open-router)
✅ [Perplexity](https://icons.lobehub.com/components/perplexity)
✅ [Replicate](https://icons.lobehub.com/components/replicate)
✅ [SiliconCloud (SiliconFlow)](https://icons.lobehub.com/components/silicon-cloud)
✅ [Stability (StableDiffusion)](https://icons.lobehub.com/components/stability)
✅ [Tencent](https://icons.lobehub.com/components/tencent)
✅ [together.ai](https://icons.lobehub.com/components/together)
✅ [vLLM](https://icons.lobehub.com/components/vllm)
✅ [Zeabur](https://icons.lobehub.com/components/zeabur)
✅ [Zhipu (智谱)](https://icons.lobehub.com/components/zhipu) | ✅ [Adobe](https://icons.lobehub.com/components/adobe)
✅ [Adobe (Firefly)](https://icons.lobehub.com/components/adobe-firefly)
✅ [Automatic1111 (SD Webui)](https://icons.lobehub.com/components/automatic)
✅ [Github](https://icons.lobehub.com/components/github)
✅ [Github Copilot](https://icons.lobehub.com/components/github-copilot)
✅ [Google (Colab)](https://icons.lobehub.com/components/colab)
✅ [Langfuse](https://icons.lobehub.com/components/langfuse)
✅ [Microsoft Copilot](https://icons.lobehub.com/components/copilot)
✅ [Midjourney](https://icons.lobehub.com/components/midjourney)
✅ [Nvidia (ChatWithRTX)](https://icons.lobehub.com/components/nvidia)
✅ [Pollinations](https://icons.lobehub.com/components/pollinations)
✅ [Qingyan (智谱清言)](https://icons.lobehub.com/components/qingyan)
✅ [Suno](https://icons.lobehub.com/components/suno) | diff --git a/src/ModelIcon/const.ts b/src/ModelIcon/const.ts index cb48df33..2c9ea147 100644 --- a/src/ModelIcon/const.ts +++ b/src/ModelIcon/const.ts @@ -31,11 +31,11 @@ import OpenAI from '@/OpenAI'; import OpenChat from '@/OpenChat'; import OpenRouter from '@/OpenRouter'; import Perplexity from '@/Perplexity'; +import Qwen from '@/Qwen'; import Rwkv from '@/Rwkv'; import Spark from '@/Spark'; import Stability from '@/Stability'; import Stepfun from '@/Stepfun'; -import Tongyi from '@/Tongyi'; import Wenxin from '@/Wenxin'; import Yi from '@/Yi'; import type { IconType } from '@/types'; @@ -71,7 +71,7 @@ export const modelMappings: ModelMapping[] = [ { Icon: Gemini, keywords: ['gemini'] }, { Icon: Gemma, keywords: ['gemma'] }, { Icon: Moonshot, keywords: ['moonshot'] }, - { Icon: Tongyi, keywords: ['qwen'] }, + { Icon: Qwen, keywords: ['qwen'] }, { Icon: Minimax, keywords: ['minmax', 'abab'] }, { Icon: Mistral, keywords: ['mistral', 'mixtral', 'codestral', 'mathstral'] }, { Icon: Perplexity, keywords: ['pplx', 'sonar'] }, diff --git a/src/ProviderCombine/const.tsx b/src/ProviderCombine/const.tsx index 31834f1c..8656cd8b 100644 --- a/src/ProviderCombine/const.tsx +++ b/src/ProviderCombine/const.tsx @@ -25,10 +25,10 @@ import OpenAI from '@/OpenAI'; import OpenRouter from '@/OpenRouter'; import Perplexity from '@/Perplexity'; import { ModelProvider } from '@/ProviderIcon/const'; +import Qwen from '@/Qwen'; import SiliconCloud from '@/SiliconCloud'; import Stepfun from '@/Stepfun'; import Together from '@/Together'; -import Tongyi from '@/Tongyi'; import ZeroOne from '@/ZeroOne'; import Zhipu from '@/Zhipu'; @@ -126,7 +126,7 @@ export const providerMappings: ProviderMapping[] = [ { Icon: OpenRouter.Combine, keywords: [ModelProvider.OpenRouter], multiple: 0.8 }, { Icon: ZeroOne.Combine, keywords: [ModelProvider.ZeroOne], multiple: 0.9 }, { Icon: Together.Combine, keywords: [ModelProvider.TogetherAI] }, - { Icon: Tongyi.Combine, keywords: [ModelProvider.Qwen] }, + { Icon: Qwen.Combine, keywords: [ModelProvider.Qwen] }, { Icon: Stepfun.Combine, keywords: [ModelProvider.Stepfun], multiple: 0.83 }, { Icon: Baichuan.Combine, keywords: [ModelProvider.Baichuan], multiple: 0.83 }, { Icon: AiMass.Combine, keywords: [ModelProvider.Taichu], multiple: 1.16 }, diff --git a/src/ProviderIcon/const.ts b/src/ProviderIcon/const.ts index f4bd748e..0e1aeeb9 100644 --- a/src/ProviderIcon/const.ts +++ b/src/ProviderIcon/const.ts @@ -20,10 +20,10 @@ import Ollama from '@/Ollama'; import OpenAI from '@/OpenAI'; import OpenRouter from '@/OpenRouter'; import Perplexity from '@/Perplexity'; +import Qwen from '@/Qwen'; import SiliconCloud from '@/SiliconCloud'; import Stepfun from '@/Stepfun'; import Together from '@/Together'; -import Tongyi from '@/Tongyi'; import ZeroOne from '@/ZeroOne'; import Zhipu from '@/Zhipu'; import type { IconType } from '@/types'; @@ -91,7 +91,7 @@ export const providerMappings: ProviderMapping[] = [ { Icon: OpenRouter, keywords: [ModelProvider.OpenRouter] }, { Icon: ZeroOne, keywords: [ModelProvider.ZeroOne] }, { Icon: Together, keywords: [ModelProvider.TogetherAI] }, - { Icon: Tongyi, keywords: [ModelProvider.Qwen] }, + { Icon: Qwen, keywords: [ModelProvider.Qwen] }, { Icon: Stepfun, keywords: [ModelProvider.Stepfun] }, { Icon: Baichuan, keywords: [ModelProvider.Baichuan] }, { Icon: AiMass, keywords: [ModelProvider.Taichu] }, diff --git a/src/Tongyi/components/Avatar.tsx b/src/Qwen/components/Avatar.tsx similarity index 100% rename from src/Tongyi/components/Avatar.tsx rename to src/Qwen/components/Avatar.tsx diff --git a/src/Tongyi/components/Color.tsx b/src/Qwen/components/Color.tsx similarity index 100% rename from src/Tongyi/components/Color.tsx rename to src/Qwen/components/Color.tsx diff --git a/src/Tongyi/components/Combine.tsx b/src/Qwen/components/Combine.tsx similarity index 100% rename from src/Tongyi/components/Combine.tsx rename to src/Qwen/components/Combine.tsx diff --git a/src/Tongyi/components/Mono.tsx b/src/Qwen/components/Mono.tsx similarity index 100% rename from src/Tongyi/components/Mono.tsx rename to src/Qwen/components/Mono.tsx diff --git a/src/Qwen/components/Text.tsx b/src/Qwen/components/Text.tsx new file mode 100644 index 00000000..447a5dca --- /dev/null +++ b/src/Qwen/components/Text.tsx @@ -0,0 +1,25 @@ +import { forwardRef } from 'react'; + +import type { IconType } from '@/types'; + +import { TITLE } from '../style'; + +const Icon: IconType = forwardRef(({ size = '1em', style, ...rest }, ref) => { + return ( + + {TITLE} + + + ); +}); + +export default Icon; diff --git a/src/Qwen/index.md b/src/Qwen/index.md new file mode 100644 index 00000000..8f7a7ecd --- /dev/null +++ b/src/Qwen/index.md @@ -0,0 +1,74 @@ +--- +nav: Components +group: Model +title: Qwen (千问) +atomId: Qwen +description: https://huggingface.co/Qwen +--- + +## Icons + +```tsx +import { Qwen } from '@lobehub/icons'; +import { Flexbox } from 'react-layout-kit'; + +export default () => ( + + + + +); +``` + +## Text + +```tsx +import { Qwen } from '@lobehub/icons'; + +export default () => ; +``` + +## Combine + +```tsx +import { Qwen } from '@lobehub/icons'; +import { Flexbox } from 'react-layout-kit'; + +export default () => ( + + + + +); +``` + +## Avatars + +```tsx +import { Qwen } from '@lobehub/icons'; +import { Flexbox } from 'react-layout-kit'; + +export default () => ( + + + + + +); +``` + +## Colors + +```tsx +import { Qwen } from '@lobehub/icons'; +import { Flexbox } from 'react-layout-kit'; + +import ColorPreview from '../components/ColorPreview'; + +export default () => ( + + + + +); +``` diff --git a/src/Tongyi/index.ts b/src/Qwen/index.ts similarity index 100% rename from src/Tongyi/index.ts rename to src/Qwen/index.ts diff --git a/src/Tongyi/style.ts b/src/Qwen/style.ts similarity index 84% rename from src/Tongyi/style.ts rename to src/Qwen/style.ts index d24e238e..cab53cd6 100644 --- a/src/Tongyi/style.ts +++ b/src/Qwen/style.ts @@ -1,5 +1,5 @@ export const TITLE = 'Tongyi'; -export const TEXT_MULTIPLE = 0.75; +export const TEXT_MULTIPLE = 0.7; export const SPACE_MULTIPLE = 0.2; export const COLOR_PRIMARY = '#615ced'; export const COLOR_GRADIENT = 'linear-gradient(to right, #00055F, #6F69F7)'; diff --git a/src/Tongyi/components/Text.tsx b/src/Tongyi/components/Text.tsx deleted file mode 100644 index 4544876a..00000000 --- a/src/Tongyi/components/Text.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { forwardRef } from 'react'; - -import type { IconType } from '@/types'; - -import { TITLE } from '../style'; - -const Icon: IconType = forwardRef(({ size = '1em', style, ...rest }, ref) => { - return ( - - {TITLE} - - - ); -}); - -export default Icon; diff --git a/src/Tongyi/index.md b/src/Tongyi/index.md deleted file mode 100644 index f0836e80..00000000 --- a/src/Tongyi/index.md +++ /dev/null @@ -1,75 +0,0 @@ ---- -nav: Components -group: Model -title: Tongyi (通义) -atomId: Tongyi -description: https://tongyi.aliyun.com ---- - -## Icons - -```tsx -import { Tongyi } from '@lobehub/icons'; -import { Flexbox } from 'react-layout-kit'; - -export default () => ( - - - - -); -``` - -## Text - -```tsx -import { Tongyi } from '@lobehub/icons'; - -export default () => ; -``` - -## Combine - -```tsx -import { Tongyi } from '@lobehub/icons'; -import { Flexbox } from 'react-layout-kit'; - -export default () => ( - - - - - -); -``` - -## Avatars - -```tsx -import { Tongyi } from '@lobehub/icons'; -import { Flexbox } from 'react-layout-kit'; - -export default () => ( - - - - - -); -``` - -## Colors - -```tsx -import { Tongyi } from '@lobehub/icons'; -import { Flexbox } from 'react-layout-kit'; - -import ColorPreview from '../components/ColorPreview'; - -export default () => ( - - - - -); -``` diff --git a/src/index.ts b/src/index.ts index ef69bb9e..215e68b4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -68,6 +68,8 @@ export { default as ProviderCombine, type ProviderCombineProps } from './Provide export { default as ProviderIcon, type ProviderIconProps } from './ProviderIcon'; export { ModelProvider, type ModelProviderKey, providerMappings } from './ProviderIcon/const'; export { default as Qingyan, type CompoundedIcon as QingyanProps } from './Qingyan'; +export { default as Qwen, type CompoundedIcon as QwenProps } from './Qwen'; +export { default as Tongyi, type CompoundedIcon as TongyiProps } from './Qwen'; export { default as Replicate, type CompoundedIcon as ReplicateProps } from './Replicate'; export { default as Rwkv, type CompoundedIcon as RwkvProps } from './Rwkv'; export { default as SiliconCloud, type CompoundedIcon as SiliconCloudProps } from './SiliconCloud'; @@ -77,7 +79,6 @@ export { default as Stepfun, type CompoundedIcon as StepfunProps } from './Stepf export { default as Suno, type CompoundedIcon as SunoProps } from './Suno'; export { default as Tencent, type CompoundedIcon as TencentProps } from './Tencent'; export { default as Together, type CompoundedIcon as TogetherProps } from './Together'; -export { default as Tongyi, type CompoundedIcon as TongyiProps } from './Tongyi'; export type { IconType } from './types'; export { default as Vllm, type CompoundedIcon as VllmProps } from './Vllm'; export { default as Wenxin, type CompoundedIcon as WenxinProps } from './Wenxin';