azure_openai_text content provider

blackstork/microsoft, v0.4.2

Installation

To use azure_openai_text content provider, you must install the plugin blackstork/microsoft.

To install the plugin, add the full plugin name to the plugin_versions map in the Fabric global configuration block (see Global configuration for more details), as shown below:

fabric {
  plugin_versions = {
    "blackstork/microsoft" = ">= v0.4.2"
  }
}

Note the version constraint set for the plugin.

Configuration

The content provider supports the following configuration arguments:

config content azure_openai_text {
  # Required string.
  #
  # For example:
  api_key = "some string"

  # Required string.
  #
  # For example:
  resource_endpoint = "some string"

  # Required string.
  #
  # For example:
  deployment_name = "some string"

  # Optional string.
  # Default value:
  api_version = "2024-02-01"
}

Usage

The content provider supports the following execution arguments:

content azure_openai_text {
  # Required string.
  #
  # For example:
  prompt = "Summarize the following text: {{.vars.text_to_summarize}}"

  # Optional number.
  # Default value:
  max_tokens = 1000

  # Optional number.
  # Default value:
  temperature = 0

  # Optional number.
  # Default value:
  top_p = null

  # Optional number.
  # Default value:
  completions_count = 1
}