Add an OpenAI key for Prompt Engineering & LLM challenges

When creating an Assessment, you can filter Coderbyte's challenge library by "OpenAI."

CleanShot 2023-11-21 at 14.45.23@2x

By default, you will see a red plus button. To add a prompt engineering challenge that uses OpenAI, you will need to add your OpenAI key. Go to CustomizationCustom files.

CleanShot 2023-11-21 at 14.46.21@2x

Click Upload file and then Other.

Upload a file named openai_api_key.json with the following contents:

{
  "key": "<OPENAI_API_KEY_HERE>"
}

You will then be able to add OpenAI challenges to any assessment!

CleanShot 2023-11-21 at 14.48.14@2x