feat: add background image to login page and alter tooltip of base_url and add llm type to Added models List (#173)

* feat: add llm type to Added models List

* feat: alter tooltip of base_url

* feat: add background image to login page
This commit is contained in:
balibabu
2024-03-29 16:15:12 +08:00
committed by GitHub
parent ffed0876f2
commit 204385a7bf
9 changed files with 244 additions and 27 deletions

View File

@@ -78,10 +78,9 @@ const ApiKeyModal = ({
<Form.Item<FieldType>
label="Base-Url"
name="base_url"
tooltip="The API key can be obtained by registering the corresponding LLM supplier."
rules={[{ required: true, message: 'Please input base url!' }]}
tooltip="If your API key is from OpenAI, just ignore it. Any other intermediate providers will give this base url with the API key."
>
<Input />
<Input placeholder="https://api.openai.com/v1" />
</Form.Item>
)}
</Form>

View File

@@ -24,6 +24,7 @@ import {
Row,
Space,
Spin,
Tag,
Typography,
} from 'antd';
import { useCallback } from 'react';
@@ -105,7 +106,13 @@ const ModelCard = ({ item, clickApiKey }: IModelCardProps) => {
size="small"
dataSource={item.llm}
className={styles.llmList}
renderItem={(item) => <List.Item>{item.name}</List.Item>}
renderItem={(item) => (
<List.Item>
<Space>
{item.name} <Tag color="#b8b8b8">{item.type}</Tag>
</Space>
</List.Item>
)}
/>
)}
</Card>