Build the provider HTTP request for one NAP-LLM generation.
Configured protocol, base URL, model and credential.
Validated NAP-LLM generation request.
stream: true requests the dialect's server-sent-event form.
stream: true
URL, headers and JSON body for a single POST.
LlmServiceError unsupported for provider-specific input restrictions.
unsupported
const http = buildLlmProviderRequest({ protocol: 'openai-chat', baseUrl: 'https://api.openai.com/v1', model: 'gpt-4o-mini', credential: key }, request); Copy
const http = buildLlmProviderRequest({ protocol: 'openai-chat', baseUrl: 'https://api.openai.com/v1', model: 'gpt-4o-mini', credential: key }, request);
Build the provider HTTP request for one NAP-LLM generation.