Makes a POST request to the OpenAI Chat Completions API.
Usage
call_openai_api(prompt, config)
Arguments
- prompt
The prompt to send to the API
- config
API configuration with key and model information
Value
API response as text, or NULL if request failed