Skip to content

AzureResponsesProvider

reference
1 min readUpdated

Kind: Class

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

Implements: AIProvider

Methods

MethodSignatureReturns
isAvailableisAvailable()Promise<boolean>
generateTextgenerateText(prompt: string, options: GenerateOptions)Promise<string>
generateTextWithUsagegenerateTextWithUsage(prompt: string, options: GenerateOptions)Promise<AIResponse>
generateStreamgenerateStream(prompt: string, options: GenerateOptions)AsyncIterableIterator<string>
analyzeanalyze(content: string, type: AnalysisType)Promise<AnalysisResult>

Properties

PropertyType
namestring

Where it refuses work

  • AzureResponsesProvider stops the work with an early return when isReasoningModel(this.model).
  • AzureResponsesProvider stops the work with an early return when data.type === 'response.completed'.

When something fails

  • AzureResponsesProvider handles failure in 4 places: it lets it reach the caller in 2, logs it and continues in 1, and turns it into a return value in 1.

Was this page helpful?

Download as PDF