Skip to content

Commit

Permalink
隐藏编辑功能
Browse files Browse the repository at this point in the history
  • Loading branch information
IceCoCo committed Jun 20, 2024
1 parent 4acc2d8 commit f4fb860
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
1 change: 1 addition & 0 deletions projects/app/.env.local
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ OPENAI_BASE_URL=http://39.107.112.174:3001/v1
# 通用key。可以是 openai 的也可以是 oneapi 的。
# 此处逻辑:优先走 ONEAPI_URL,如果填写了 ONEAPI_URL,key 也需要是 ONEAPI 的 key
CHAT_API_KEY=sk-Mng7fQhPhMmt2O4721Bf35Bb07304179A0592eF2E50e0aE8

# mongo 数据库连接参数,本地开发时,mongo可能需要增加 directConnection=true 参数,才能连接上。

# MONGODB_URI=mongodb://username:[email protected]:27017/fastgpt?aut
Expand Down
2 changes: 1 addition & 1 deletion projects/app/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const nextConfig = {
}
];
},
assetPrefix: 'https://www.bjzgzp.com/ai-chat',
// assetPrefix: 'https://www.bjzgzp.com/ai-chat',
headers() {
return [
{
Expand Down
23 changes: 12 additions & 11 deletions projects/app/src/components/ChatBox/components/ChatController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,20 @@ const ChatController = ({

const chatText = useMemo(() => formatChatValue2InputType(chat.value).text || '', [chat.value]);

// {chat.obj === ChatRoleEnum.AI && (
// <Tag
// colorScheme="twitter"
// variant="outline"
// cursor={'pointer'}
// mr={['6px', 2]}
// onClick={onEdit}
// >
// 编辑纠错
// </Tag>
// )}

return (
<Flex h={'26px'}>
{/* {chat.obj === ChatRoleEnum.AI && (
<Tag
colorScheme="twitter"
variant="outline"
cursor={'pointer'}
mr={['6px', 2]}
onClick={onEdit}
>
编辑纠错
</Tag>
)} */}
<Flex
{...controlContainerStyle}
borderRadius={'sm'}
Expand Down

0 comments on commit f4fb860

Please sign in to comment.