balibabu commited on
Commit
9bea9fa
·
1 Parent(s): 8a6056e

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

Browse files

### 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)

web/src/locales/en.ts CHANGED
@@ -398,6 +398,7 @@ export default {
398
  addLlmBaseUrl: 'Base url',
399
  baseUrlNameMessage: 'Please input your base url!',
400
  vision: 'Does it support Vision?',
 
401
  },
402
  message: {
403
  registered: 'Registered!',
 
398
  addLlmBaseUrl: 'Base url',
399
  baseUrlNameMessage: 'Please input your base url!',
400
  vision: 'Does it support Vision?',
401
+ ollamaLink: 'How to integrate Ollama',
402
  },
403
  message: {
404
  registered: 'Registered!',
web/src/locales/zh.ts CHANGED
@@ -383,6 +383,7 @@ export default {
383
  modelNameMessage: '请输入模型名称!',
384
  modelTypeMessage: '请输入模型类型!',
385
  baseUrlNameMessage: '请输入基础 Url!',
 
386
  },
387
  message: {
388
  registered: '注册成功',
 
383
  modelNameMessage: '请输入模型名称!',
384
  modelTypeMessage: '请输入模型类型!',
385
  baseUrlNameMessage: '请输入基础 Url!',
386
+ ollamaLink: '如何集成 Ollama',
387
  },
388
  message: {
389
  registered: '注册成功',
web/src/pages/login/index.less CHANGED
@@ -45,9 +45,9 @@
45
  color: #e9d7fe;
46
  }
47
  .rightPanel {
48
- max-width: 640px;
49
  .loginTitle {
50
- font-size: 72px;
51
  font-style: normal;
52
  font-weight: 600;
53
  line-height: 90px;
 
45
  color: #e9d7fe;
46
  }
47
  .rightPanel {
48
+ max-width: 670px;
49
  .loginTitle {
50
+ font-size: 68px;
51
  font-style: normal;
52
  font-weight: 600;
53
  line-height: 90px;
web/src/pages/user-setting/setting-model/ollama-modal/index.tsx CHANGED
@@ -1,7 +1,7 @@
1
  import { useTranslate } from '@/hooks/commonHooks';
2
  import { IModalProps } from '@/interfaces/common';
3
  import { IAddLlmRequestBody } from '@/interfaces/request/llm';
4
- import { Form, Input, Modal, Select, Switch } from 'antd';
5
  import omit from 'lodash/omit';
6
 
7
  type FieldType = IAddLlmRequestBody & { vision: boolean };
@@ -42,6 +42,20 @@ const OllamaModal = ({
42
  onOk={handleOk}
43
  onCancel={hideModal}
44
  okButtonProps={{ loading }}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  >
46
  <Form
47
  name="basic"
 
1
  import { useTranslate } from '@/hooks/commonHooks';
2
  import { IModalProps } from '@/interfaces/common';
3
  import { IAddLlmRequestBody } from '@/interfaces/request/llm';
4
+ import { Flex, Form, Input, Modal, Select, Space, Switch } from 'antd';
5
  import omit from 'lodash/omit';
6
 
7
  type FieldType = IAddLlmRequestBody & { vision: boolean };
 
42
  onOk={handleOk}
43
  onCancel={hideModal}
44
  okButtonProps={{ loading }}
45
+ footer={(originNode: React.ReactNode) => {
46
+ return (
47
+ <Flex justify={'space-between'}>
48
+ <a
49
+ href="https://github.com/infiniflow/ragflow/blob/main/docs/ollama.md"
50
+ target="_blank"
51
+ rel="noreferrer"
52
+ >
53
+ {t('ollamaLink')}
54
+ </a>
55
+ <Space>{originNode}</Space>
56
+ </Flex>
57
+ );
58
+ }}
59
  >
60
  <Form
61
  name="basic"