From c5a8c4a2fdd57c3bc7e2746443b00b31e7eb78d7 Mon Sep 17 00:00:00 2001 From: Germey Date: Thu, 4 Jul 2024 01:56:03 +0800 Subject: [PATCH] Fix chat model error (#69) Co-authored-by: AceDataCloud --- ...acloud-nexior-50bdc716-d678-4c45-91d3-cce4aaab6d23.json | 7 +++++++ ...acloud-nexior-68ee3630-79fb-4a0b-8889-a8397c7b62d2.json | 7 +++++++ src/store/chat/models.ts | 2 +- src/store/chat/mutations.ts | 1 - 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 change/@acedatacloud-nexior-50bdc716-d678-4c45-91d3-cce4aaab6d23.json create mode 100644 change/@acedatacloud-nexior-68ee3630-79fb-4a0b-8889-a8397c7b62d2.json diff --git a/change/@acedatacloud-nexior-50bdc716-d678-4c45-91d3-cce4aaab6d23.json b/change/@acedatacloud-nexior-50bdc716-d678-4c45-91d3-cce4aaab6d23.json new file mode 100644 index 00000000..96432662 --- /dev/null +++ b/change/@acedatacloud-nexior-50bdc716-d678-4c45-91d3-cce4aaab6d23.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "fix model name", + "packageName": "@acedatacloud/nexior", + "email": "office@acedata.cloud", + "dependentChangeType": "patch" +} diff --git a/change/@acedatacloud-nexior-68ee3630-79fb-4a0b-8889-a8397c7b62d2.json b/change/@acedatacloud-nexior-68ee3630-79fb-4a0b-8889-a8397c7b62d2.json new file mode 100644 index 00000000..96432662 --- /dev/null +++ b/change/@acedatacloud-nexior-68ee3630-79fb-4a0b-8889-a8397c7b62d2.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "fix model name", + "packageName": "@acedatacloud/nexior", + "email": "office@acedata.cloud", + "dependentChangeType": "patch" +} diff --git a/src/store/chat/models.ts b/src/store/chat/models.ts index e0d7738f..7b2bfb87 100644 --- a/src/store/chat/models.ts +++ b/src/store/chat/models.ts @@ -1,7 +1,7 @@ import { IApplication, IChatConversation, IChatModel, ICredential, IService, Status } from '@/models'; export interface IChatState { - model: IChatModel | undefined; + model: IChatModel; application: IApplication | undefined; service: IService | undefined; conversations: IChatConversation[] | undefined; diff --git a/src/store/chat/mutations.ts b/src/store/chat/mutations.ts index ab09ae56..1be54a06 100644 --- a/src/store/chat/mutations.ts +++ b/src/store/chat/mutations.ts @@ -6,7 +6,6 @@ export const resetAll = (state: IChatState): void => { state.conversations = undefined; state.credential = undefined; state.service = undefined; - state.model = undefined; }; export const setModel = (state: IChatState, payload: IChatModel): void => {