Commit e2bb38a9 by Sixong.Zhu

im

parent f4a3ad11
Showing with 3 additions and 2 deletions
......@@ -11,10 +11,11 @@ export const getChatModel = () => chatInfo;
export async function getChatModelInfo(
modelName: string,
id: string | number,
detailname?: string
detailname?: string,
forceReload = false
) {
const key = `${modelName}-${id}`
if (chatInfo[key]) {
if (chatInfo[key] && !forceReload) {
return Promise.resolve({
uniplatId: chatInfo[key].row.UniplatChatId.value,
chat_id: +chatInfo[key].row.UniplatImChatId.value,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment