Commit e2bb38a9 by Sixong.Zhu

im

parent f4a3ad11
Showing with 3 additions and 2 deletions
...@@ -11,10 +11,11 @@ export const getChatModel = () => chatInfo; ...@@ -11,10 +11,11 @@ export const getChatModel = () => chatInfo;
export async function getChatModelInfo( export async function getChatModelInfo(
modelName: string, modelName: string,
id: string | number, id: string | number,
detailname?: string detailname?: string,
forceReload = false
) { ) {
const key = `${modelName}-${id}` const key = `${modelName}-${id}`
if (chatInfo[key]) { if (chatInfo[key] && !forceReload) {
return Promise.resolve({ return Promise.resolve({
uniplatId: chatInfo[key].row.UniplatChatId.value, uniplatId: chatInfo[key].row.UniplatChatId.value,
chat_id: +chatInfo[key].row.UniplatImChatId.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