Skip to content

Commit c68f5da

Browse files
authoredMar 10, 2024
🐛 fix: fix qwen model id and improve anthropic logo text color (lobehub#1524)
* 💄 style: improve llm order * 🐛 fix: fix qwen model id * 🐛 fix: fix qwen model id * 🐛 fix: fix Anthropic color
1 parent f8566e4 commit c68f5da

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed
 

‎src/app/settings/llm/Anthropic/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Anthropic } from '@lobehub/icons';
1+
import { Anthropic, Claude } from '@lobehub/icons';
22
import { Input } from 'antd';
33
import { useTheme } from 'antd-style';
44
import { memo } from 'react';
@@ -41,7 +41,7 @@ const AnthropicProvider = memo(() => {
4141
provider={providerKey}
4242
title={
4343
<Anthropic.Text
44-
color={theme.isDarkMode ? theme.colorText : Anthropic.colorPrimary}
44+
color={theme.isDarkMode ? theme.colorText : Claude.colorPrimary}
4545
size={18}
4646
/>
4747
}

‎src/app/settings/llm/index.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ export default memo<{ showOllama: boolean }>(({ showOllama }) => {
2626
<PageTitle title={t('tab.llm')} />
2727
<OpenAI />
2828
{/*<AzureOpenAI />*/}
29-
<Zhipu />
30-
<Moonshot />
29+
{showOllama && <Ollama />}
30+
<Anthropic />
3131
<Google />
3232
<Bedrock />
3333
<Perplexity />
34-
<Anthropic />
3534
<Mistral />
36-
{showOllama && <Ollama />}
35+
<Moonshot />
36+
<Zhipu />
3737
<Footer>
3838
<Trans i18nKey="llm.waitingForMore" ns={'setting'}>
3939
更多模型正在

‎src/config/modelProviders/ollama.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -88,23 +88,23 @@ const Ollama: ModelProviderCard = {
8888
{
8989
displayName: 'Qwen Chat 7B',
9090
functionCall: false,
91-
id: 'qwen:7b-chat',
91+
id: 'qwen:7b',
9292
tokens: 32_768,
9393
vision: false,
9494
},
9595
{
9696
displayName: 'Qwen Chat 14B',
9797
functionCall: false,
9898
hidden: true,
99-
id: 'qwen:14b-chat',
99+
id: 'qwen:14b',
100100
tokens: 32_768,
101101
vision: false,
102102
},
103103
{
104-
displayName: 'Qwen Chat 70B',
104+
displayName: 'Qwen Chat 72B',
105105
functionCall: false,
106106
hidden: true,
107-
id: 'qwen:70b-chat',
107+
id: 'qwen:72b',
108108
tokens: 32_768,
109109
vision: false,
110110
},

0 commit comments

Comments
 (0)
Please sign in to comment.