Updated LLM config and added read_webpage
This commit is contained in:
13
src/ai.ts
13
src/ai.ts
@@ -1,18 +1,17 @@
|
||||
import * as os from 'node:os';
|
||||
import {LLM, LLMOptions} from './llm';
|
||||
import {LLM, AnthropicConfig, OllamaConfig, OpenAiConfig, LLMRequest} from './llm';
|
||||
import { Audio } from './audio.ts';
|
||||
import {Vision} from './vision.ts';
|
||||
|
||||
export type AbortablePromise<T> = Promise<T> & {abort: () => any};
|
||||
|
||||
export type AiOptions = LLMOptions & {
|
||||
export type AiOptions = {
|
||||
/** Path to models */
|
||||
path?: string;
|
||||
/** Piper TTS configuratoin */
|
||||
piper?: {
|
||||
/** Model URL: `https://huggingface.co/rhasspy/piper-voices/tree/main/.../model.onnx` */
|
||||
model: string;
|
||||
},
|
||||
/** Large language models, first is default */
|
||||
llm?: Omit<LLMRequest, 'model'> & {
|
||||
models: {[model: string]: AnthropicConfig | OllamaConfig | OpenAiConfig};
|
||||
}
|
||||
/** Tesseract OCR configuration */
|
||||
tesseract?: {
|
||||
/** Model: eng, eng_best, eng_fast */
|
||||
|
||||
Reference in New Issue
Block a user