Add requestTokenParts structure to manage token parts in chat requests

This commit is contained in:
kwaroran
2025-04-16 11:14:13 +09:00
parent ed992407a7
commit 040652d618

View File

@@ -59,9 +59,15 @@ export interface OpenAIChatFull extends OpenAIChat{
}
}
export interface requestTokenPart{
name:string
tokens:number
}
export const doingChat = writable(false)
export const chatProcessStage = writable(0)
export const abortChat = writable(false)
export let requestTokenParts:{[key:string]:requestTokenPart[]} = {}
export let previewFormated:OpenAIChat[] = []
export let previewBody:string = ''