Skip to content

extractOutputText

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/ai/providers/azure-responses.provider.ts

Azure Responses API Provider

Implements the NestJS AIProvider interface using the Azure OpenAI Responses API. This is a fundamentally different API format from Chat Completions:

  • Request: input (not messages), instructions (not system role), max_output_tokens
  • Response: output_text, usage.input_tokens/output_tokens
  • Streaming: typed event: + data: pairs with response.output_text.delta events

Signature

ts
function extractOutputText(output: unknown): string

Parameters

NameType
outputunknown

Returns: string

Was this page helpful?

Download as PDF