fix(core): update
This commit is contained in:
parent
1b814477ec
commit
616ef168a5
@ -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'
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user