app list open-api & completion with appid & get history source (#3011)

* app list open-api & completion with appid & get history source

* change default value position
This commit is contained in:
heheer
2024-10-29 14:27:29 +08:00
committed by GitHub
parent efc4e860b7
commit 98771284e4
5 changed files with 21 additions and 6 deletions

View File

@@ -4,6 +4,7 @@ import type { OutLinkChatAuthProps } from '@fastgpt/global/support/permission/ch
import { AppTypeEnum } from '@fastgpt/global/core/app/constants';
import { RequestPaging } from '@/types';
import { GetChatTypeEnum } from '@/global/core/chat/constants';
import { ChatSourceEnum } from '@fastgpt/global/core/chat/constants';
export type GetChatSpeechProps = {
ttsConfig: AppTTSConfigType;
input: string;
@@ -56,6 +57,7 @@ export type InitChatResponse = {
/* ---------- history ----------- */
export type GetHistoriesProps = OutLinkChatAuthProps & {
appId?: string;
source?: `${ChatSourceEnum}`;
};
export type UpdateHistoryProps = OutLinkChatAuthProps & {