fix(core): update

This commit is contained in:
Philipp Kunz 2024-03-31 01:34:52 +01:00
parent 1b814477ec
commit 616ef168a5
2 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@push.rocks/smartai', name: '@push.rocks/smartai',
version: '0.0.6', version: '0.0.7',
description: 'a standardaized interface to talk to AI models' description: 'a standardaized interface to talk to AI models'
} }

View File

@ -1,10 +1,10 @@
type TProcessFunction = (input: string) => Promise<string>; type TProcessFunction = (input: string) => Promise<string>;
interface ISmartAiOptions { export interface ISmartAiOptions {
processFunction: TProcessFunction; processFunction: TProcessFunction;
} }
class SmartAi { export class SmartAi {
private processFunction: TProcessFunction; private processFunction: TProcessFunction;
private inputStreamWriter: WritableStreamDefaultWriter<string> | null = null; private inputStreamWriter: WritableStreamDefaultWriter<string> | null = null;
private outputStreamController: ReadableStreamDefaultController<string> | null = null; private outputStreamController: ReadableStreamDefaultController<string> | null = null;