five-on-it / apps/creator/src/model / Model
Interface: Model
Defined in: apps/creator/src/model.ts:68
A model a runner talks to.
Properties
name
readonlyname:string
Defined in: apps/creator/src/model.ts:70
Its name, for the logs.
price?
readonlyoptionalprice?:Price
Defined in: apps/creator/src/model.ts:72
What its calls cost at most: the runner bounds each one with it before it is made.
Methods
complete()
complete(
request,signal):Promise<Completion>
Defined in: apps/creator/src/model.ts:74
One turn: the model's answer; rejects with a ModelError, or when the signal aborts.
Parameters
request
ChatRequest
signal
AbortSignal
Returns
Promise<Completion>