API Reference
classes
Modelapi

@coasys/ad4m / Exports / ModelApi

Class: ModelApi

Table of contents

Constructors

Properties

Constructors

constructor

• new ModelApi()

Properties

apiKey

• apiKey: string

Defined in

core/src/ai/AITypes.ts:5 (opens in a new tab)


apiType

• apiType: String

Defined in

core/src/ai/AITypes.ts:7 (opens in a new tab)


baseUrl

• baseUrl: string

Defined in

core/src/ai/AITypes.ts:4 (opens in a new tab)


maxNumCtx

• Optional maxNumCtx: number

Optional ceiling for the provider's context window (tokens). Read by the Ollama provider to bound num_ctx / KV-cache VRAM.

Defined in

core/src/ai/AITypes.ts:10 (opens in a new tab)


model

• model: string

Defined in

core/src/ai/AITypes.ts:6 (opens in a new tab)