Skip to main content

openai

AI models for natural language processing and content generation.

Provider Summary
total services: 17
total resources: 52

See also:
[SHOW] [DESCRIBE] [REGISTRY]


Installation

To pull the latest version of the openai provider, run the following command:

REGISTRY PULL openai;

To view previous provider versions or to pull a specific provider version, see here.

Authentication

The following system environment variables are used for authentication by default:

These variables are sourced at runtime (from the local machine or as CI variables/secrets).

Using different environment variables

To use different environment variables (instead of the defaults), use the --auth flag of the stackql program. For example:


AUTH='{ "openai": { "type": "bearer", "credentialsenvvar": "OPENAI_API_KEY" }}'
stackql shell --auth="${AUTH}"

or using PowerShell:


$Auth = "{ 'openai': { 'type': 'bearer', 'credentialsenvvar': 'OPENAI_API_KEY' }}"
stackql.exe shell --auth=$Auth

Services