Module rust_ai::utils::config

source ·
Expand description

Configuration file related functions

Configuration

Provide configuration related types and functions/methods.

Note: config.yml must locate in your current working directory.

Example

openai:
  api_key: sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
azure:
  speech:
    key: 4c7eXXXXXXXXXXXXXXXXXXXXXXX54c32
    region: westus

Structs

  • A mapping for Azure (Global) configuration contents
  • Service key for use in multiple Azure services.
  • Configurations from config.yml
  • A mapping for OpenAI configuration contents