/
githubmirror
/
english-compiler
Обзор
Документация
Войти
/
githubmirror
/
english-compiler
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/openai/getApiKey.js
10 строк
275 B
Eugene Cheah
Basic openAI integration, with prompt to completion + caching
17 фев 2023, 06:45
17 фев 2023, 06:45
4cb5497
Код
Авторство
О чём код?
// Get the API key const openai_apikey = require("../core/config").openai_apikey; // Safety check if(openai_apikey == null) { throw "Missing valid `openai_apikey`, please ensure that the code-ai config.jsonc is setup with it" } // Export module.exports = openai_apikey;