fix: Add type def global for nitro extension - inference
This commit is contained in:
parent
a2cf42ac76
commit
44bfcaabd9
@ -1,9 +1,27 @@
|
||||
declare const MODULE: string;
|
||||
declare const INFERENCE_URL: string;
|
||||
|
||||
/**
|
||||
* The parameters for the initModel function.
|
||||
* @property settings - The settings for the machine learning model.
|
||||
* @property settings.ctx_len - The context length.
|
||||
* @property settings.ngl - The number of generated tokens.
|
||||
* @property settings.cont_batching - Whether to use continuous batching.
|
||||
* @property settings.embedding - Whether to use embedding.
|
||||
*/
|
||||
interface EngineSettings {
|
||||
ctx_len: number;
|
||||
ngl: number;
|
||||
cont_batching: boolean;
|
||||
embedding: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The response from the initModel function.
|
||||
* @property error - An error message if the model fails to load.
|
||||
*/
|
||||
interface ModelOperationResponse {
|
||||
error?: any;
|
||||
modelFile?: string;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user