Przeglądaj źródła

feat: add ollama.md link to OllamaModal (#272)

### What problem does this PR solve?

add ollama.md link to OllamaModal

Issue link:#221

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
tags/v0.1.0
balibabu 1 rok temu
rodzic
commit
c24a790c9e
No account linked to committer's email address

+ 1
- 0
web/src/locales/en.ts Wyświetl plik

addLlmBaseUrl: 'Base url', addLlmBaseUrl: 'Base url',
baseUrlNameMessage: 'Please input your base url!', baseUrlNameMessage: 'Please input your base url!',
vision: 'Does it support Vision?', vision: 'Does it support Vision?',
ollamaLink: 'How to integrate Ollama',
}, },
message: { message: {
registered: 'Registered!', registered: 'Registered!',

+ 1
- 0
web/src/locales/zh.ts Wyświetl plik

modelNameMessage: '请输入模型名称!', modelNameMessage: '请输入模型名称!',
modelTypeMessage: '请输入模型类型!', modelTypeMessage: '请输入模型类型!',
baseUrlNameMessage: '请输入基础 Url!', baseUrlNameMessage: '请输入基础 Url!',
ollamaLink: '如何集成 Ollama',
}, },
message: { message: {
registered: '注册成功', registered: '注册成功',

+ 2
- 2
web/src/pages/login/index.less Wyświetl plik

color: #e9d7fe; color: #e9d7fe;
} }
.rightPanel { .rightPanel {
max-width: 640px;
max-width: 670px;
.loginTitle { .loginTitle {
font-size: 72px;
font-size: 68px;
font-style: normal; font-style: normal;
font-weight: 600; font-weight: 600;
line-height: 90px; line-height: 90px;

+ 15
- 1
web/src/pages/user-setting/setting-model/ollama-modal/index.tsx Wyświetl plik

import { useTranslate } from '@/hooks/commonHooks'; import { useTranslate } from '@/hooks/commonHooks';
import { IModalProps } from '@/interfaces/common'; import { IModalProps } from '@/interfaces/common';
import { IAddLlmRequestBody } from '@/interfaces/request/llm'; import { IAddLlmRequestBody } from '@/interfaces/request/llm';
import { Form, Input, Modal, Select, Switch } from 'antd';
import { Flex, Form, Input, Modal, Select, Space, Switch } from 'antd';
import omit from 'lodash/omit'; import omit from 'lodash/omit';


type FieldType = IAddLlmRequestBody & { vision: boolean }; type FieldType = IAddLlmRequestBody & { vision: boolean };
onOk={handleOk} onOk={handleOk}
onCancel={hideModal} onCancel={hideModal}
okButtonProps={{ loading }} okButtonProps={{ loading }}
footer={(originNode: React.ReactNode) => {
return (
<Flex justify={'space-between'}>
<a
href="https://github.com/infiniflow/ragflow/blob/main/docs/ollama.md"
target="_blank"
rel="noreferrer"
>
{t('ollamaLink')}
</a>
<Space>{originNode}</Space>
</Flex>
);
}}
> >
<Form <Form
name="basic" name="basic"

Ładowanie…
Anuluj
Zapisz