feat: agent and ui

This commit is contained in:
archer
2023-07-06 19:35:02 +08:00
parent 46f20c7dc3
commit 23642af6e2
44 changed files with 588 additions and 1148 deletions

View File

@@ -109,8 +109,6 @@ export const appModule2FlowEdge = ({
modules: AppModuleItemType[];
onDelete: (id: string) => void;
}) => {
console.log(modules);
const edges: Edge[] = [];
modules.forEach((module) =>
module.outputs.forEach((output) =>

View File

@@ -1,6 +1,3 @@
import { OpenAiChatEnum } from '@/constants/model';
import type { ChatModelType } from '@/constants/model';
import type { ChatItemType } from '@/types/chat';
import { countOpenAIToken, openAiSliceTextByToken } from './openai';
import { gpt_chatItemTokenSlice } from '@/pages/api/openapi/text/gptMessagesSlice';