openai
AI models for natural language processing and content generation.
Provider Summary (v24.10.00267)
total services: 17
total methods: 94
total methods: 94
total resources: 35
total selectable resources: 23
total selectable resources: 23
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:
OPENAI_API_KEY
- OpenAI API key (see How to Create an OpenAI API Key)
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