Initial first release
This commit is contained in:
		
							
								
								
									
										17
									
								
								types.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								types.d.ts
									
									
									
									
										vendored
									
									
								
							| @ -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 | ||||
| } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user