Install ChatGPT for elmah.io

Log into elmah.io and go to the log settings. Click the Apps tab. Locate the ChatGPT app and click the Install button:

Install ChatGPT App

The app supports two hosting models for ChatGPT. You can either bring your own OpenAI API key or use a model hosted by us (available on the Enterprise plan). Both options currently support GPT-3.5-Turbo, GPT-4, and GPT-4o.

To use OpenAI, select one of the models prefixed with 'OpenAI' and input your API key (Where do I find my OpenAI API Key?).

To use a model hosted by us, select one of the models prefixed with 'elmah.io'. When picking this option, your data will never leave our data center since the model is hosted directly on Azure.

As a default, elmah.io will only share the stack trace and a few other properties of an error with ChatGPT when you click the Get suggestion button in the elmah.io UI. If you want to include the source code, attached SQL, and/or breadcrumbs, you can enable one or more toggles. Sharing the source will require you to bundle your source code alongside errors as documented here: How to include source code in log messages.

Click Save and the app is added to your log. When you open errors valid for ChatGPT help, you will see a tab named AI next to Detail, Inspector, etc.


This article was brought to you by the elmah.io team. elmah.io is the best error management system for .NET web applications. We monitor your website, alert you when errors start happening, and help you fix errors fast.

See how we can help you monitor your website for crashes Monitor your website