ChromeAIRequest
Defined in: adapters/chrome-ai.ts:32
Chrome AI request structure for browser-based AI.
Chrome’s built-in AI uses a simple prompt-based format without message arrays. Only available in Chrome 129+ with AI features enabled.
- ChromeAIResponse
- https://developer.chrome.com/docs/ai/built-in
Example
Section titled “Example”const request: ChromeAIRequest = { prompt: 'Explain quantum computing', temperature: 0.7, topK: 40};Properties
Section titled “Properties”prompt
Section titled “prompt”prompt:
string
Defined in: adapters/chrome-ai.ts:34
Text prompt (no message array format)
temperature?
Section titled “temperature?”
optionaltemperature:number
Defined in: adapters/chrome-ai.ts:37
Sampling temperature parameter
optionaltopK:number
Defined in: adapters/chrome-ai.ts:40
Top-K sampling parameter