Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
bentwnghk committed Sep 16, 2024
2 parents 73cda99 + 36a03aa commit a608dee
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Body from './Body';
import Header from './Header';
import { useEnable } from './useEnable';

export const Artifacts = {
export const Plugins = {
Body,
Header,
useEnable,
Expand Down
4 changes: 2 additions & 2 deletions src/app/(main)/chat/(workspace)/@portal/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

import { memo } from 'react';

import { Artifacts } from './Artifacts';
import { FilePreview } from './FilePreview';
import { HomeBody, HomeHeader } from './Home';
import { MessageDetail } from './MessageDetail';
import { Plugins } from './Plugins';

const items = [MessageDetail, Artifacts, FilePreview];
const items = [MessageDetail, Plugins, FilePreview];

export const PortalHeader = memo(() => {
const enabledList: boolean[] = [];
Expand Down
16 changes: 16 additions & 0 deletions src/config/modelProviders/ollama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,22 @@ const Ollama: ModelProviderCard = {
tokens: 4096,
vision: true,
},
{
description: 'MiniCPM-V 是 OpenBMB 推出的新一代多模态大模型,具备卓越的 OCR 识别和多模态理解能力,支持广泛的应用场景。',
displayName: 'MiniCPM-V 8B',
enabled: true,
id: 'minicpm-v:8b',
tokens: 128_000,
vision:true,
},
{
description: 'MiniCPM-V 是 OpenBMB 推出的新一代多模态大模型,具备卓越的 OCR 识别和多模态理解能力,支持广泛的应用场景。',
displayName: 'MiniCPM-V 8B',
enabled: true,
id: 'minicpm-v',
tokens: 128_000,
vision:true,
},
],
defaultShowBrowserRequest: true,
description:
Expand Down
4 changes: 2 additions & 2 deletions src/features/Conversation/Messages/Tool/Inspector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ActionIcon, Highlighter, Icon, Tag } from '@bentwnghk/ui';
import { Tabs, Typography } from 'antd';
import isEqual from 'fast-deep-equal';
import {
InspectionPanel,
BetweenVerticalStart,
LucideBug,
LucideBugOff,
LucideChevronDown,
Expand Down Expand Up @@ -113,7 +113,7 @@ const Inspector = memo<InspectorProps>(
<Flexbox horizontal>
{!isMobile && showRightAction && (
<ActionIcon
icon={InspectionPanel}
icon={BetweenVerticalStart}
onClick={() => {
if (!isMessageToolUIOpen) openToolUI(id, identifier);
else {
Expand Down

0 comments on commit a608dee

Please sign in to comment.