mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-03 14:34:40 +00:00
Refresh provider models from the public Pi catalog (#555)
* feat(provider): refresh models from the public Pi catalog * fix(provider): simplify provider card actions
This commit is contained in:
@@ -92,8 +92,10 @@ export async function openSessionCache(sessionId: string) {
|
||||
throw new Error('Session commit sequence mismatch')
|
||||
seq = receipt.seq
|
||||
}
|
||||
if (result.stored !== commits.length)
|
||||
if (result.kind === 'refused') {
|
||||
throw result.refused ?? new Error('Session restoration refused')
|
||||
}
|
||||
if (result.stored !== commits.length) throw new Error('Session restoration was incomplete')
|
||||
}
|
||||
await save(true)
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user