- Add IOllamaModelOptions interface for runtime options (num_ctx, temperature, etc.) - Extend IOllamaProviderOptions with defaultOptions and defaultTimeout - Add IOllamaChatOptions for per-request overrides - Add IOllamaStreamChunk and IOllamaChatResponse interfaces - Add chatStreamResponse() for async iteration with options - Add collectStreamResponse() for streaming with progress callback - Add chatWithOptions() for non-streaming with full options - Update chat() to use defaultOptions and defaultTimeout
39 lines
813 B
TypeScript
39 lines
813 B
TypeScript
// node native
|
|
import * as path from 'path';
|
|
|
|
export {
|
|
path,
|
|
}
|
|
|
|
// @push.rocks scope
|
|
import * as qenv from '@push.rocks/qenv';
|
|
import * as smartarray from '@push.rocks/smartarray';
|
|
import * as smartfs from '@push.rocks/smartfs';
|
|
import * as smartpath from '@push.rocks/smartpath';
|
|
import * as smartpdf from '@push.rocks/smartpdf';
|
|
import * as smartpromise from '@push.rocks/smartpromise';
|
|
import * as smartrequest from '@push.rocks/smartrequest';
|
|
import * as webstream from '@push.rocks/webstream';
|
|
|
|
export {
|
|
smartarray,
|
|
qenv,
|
|
smartfs,
|
|
smartpath,
|
|
smartpdf,
|
|
smartpromise,
|
|
smartrequest,
|
|
webstream,
|
|
}
|
|
|
|
// third party
|
|
import * as anthropic from '@anthropic-ai/sdk';
|
|
import * as mistralai from '@mistralai/mistralai';
|
|
import * as openai from 'openai';
|
|
|
|
export {
|
|
anthropic,
|
|
mistralai,
|
|
openai,
|
|
}
|