foundry_build_request: Build Azure AI Foundry Request

View source: R/utils.R

foundry_build_requestR Documentation

Build Azure AI Foundry Request

Description

Internal function to construct httr2 requests for Azure AI Foundry API.

Usage

foundry_build_request(
  deployment,
  endpoint_path,
  body,
  api_key = NULL,
  token = NULL,
  api_version = NULL
)

Arguments

deployment

Character. The deployment name.

endpoint_path

Character. The API endpoint path (e.g., "chat/completions").

body

List. The request body.

api_key

Character. Optional API key override.

token

Character. Optional bearer token override.

api_version

Character. Optional API version override.

Value

An httr2 request object (not yet performed).


foundryR documentation built on Sept. 25, 2026, 1:10 a.m.