Initial first release

This commit is contained in:
2025-06-29 15:03:00 -04:00
parent 9e4959af27
commit 3200b2bdd3
14 changed files with 501 additions and 127 deletions

17
types.d.ts vendored
View File

@ -22,8 +22,21 @@ export interface Account {
}
export interface OllamaRequest {
model: string; // must be a valid and locally installed Ollama model
prompt: string; // user prompt
/**
* Name of the Ollama model to generate a response from. Must be a valid and locally installed model.
*/
model: string;
/**
* The prompt sent from the end-user.
*/
prompt: string;
/**
* Whatever system prompt you'd like to add to the model to make it more unique, or force it to respond a certain way.
*/
system: string;
/**
* Whether to stream responses from the API, or have it sent all as one payload.
*/
stream?: boolean = false; // stream response vs get response in one full message
}