add ollama package and support for ollama-hosted model

This commit is contained in:
kwaroran
2024-04-17 21:01:56 +09:00
parent e10723aec5
commit 4f8477538d
7 changed files with 61 additions and 0 deletions

View File

@@ -383,6 +383,8 @@ export function setDatabase(data:Database){
data.heightMode ??= 'normal'
data.antiClaudeOverload ??= false
data.maxSupaChunkSize ??= 1200
data.ollamaURL ??= ''
data.ollamaModel ??= ''
changeLanguage(data.language)
DataBase.set(data)
@@ -618,6 +620,8 @@ export interface Database{
noWaitForTranslate:boolean
antiClaudeOverload:boolean
maxSupaChunkSize:number
ollamaURL:string
ollamaModel:string
}
export interface customscript{