[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

@@ -13,9 +13,9 @@ import { exampleMessage } from "./exampleMessages";
import { sayTTS } from "./tts";
import { supaMemory } from "./memory/supaMemory";
import { v4 } from "uuid";
import { clone, cloneDeep } from "lodash";
import { cloneDeep } from "lodash";
import { groupOrder } from "./group";
import { runTrigger, type additonalSysPrompt } from "./triggers";
import { runTrigger } from "./triggers";
import { HypaProcesser } from "./memory/hypamemory";
import { additionalInformations } from "./embedding/addinfo";
import { cipherChat, decipherChat } from "./cipherChat";

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)

View File

@@ -1,6 +1,5 @@
import { get } from "svelte/store";
import type { OpenAIChat } from ".";
import { tokenize } from "../tokenizer";
import { DataBase } from "../storage/database";
export function multiChatReplacer(){