[ref] remove unused

This commit is contained in:
kwaroran
2023-12-10 03:38:21 +09:00
parent 29e988e14d
commit 341ea3c364
9 changed files with 9 additions and 21 deletions

View File

@@ -47,14 +47,12 @@ type requestDataResponse = {
}|{
type: "streaming",
result: ReadableStream<string>,
noRetry?: boolean,
special?: {
emotion?: string
}
}|{
type: "multiline",
result: ['user'|'char',string][],
noRetry?: boolean,
special?: {
emotion?: string
}
@@ -117,7 +115,6 @@ export interface OpenAIChatExtra {
export async function requestChatDataMain(arg:requestDataArgument, model:'model'|'submodel', abortSignal:AbortSignal=null):Promise<requestDataResponse> {
const db = get(DataBase)
let result = ''
let formated = cloneDeep(arg.formated)
let maxTokens = arg.maxTokens ??db.maxResponse
let temperature = arg.temperature ?? (db.temperature / 100)