Skip to main content
All docs
V26.1
  • Troubleshoot AI Service Integration Issues

    This section describes common AI integration issues and steps you can follow to diagnose and resolve these issues. If the solutions listed here do not help, create a ticket in our Support Center and attach a reproducible sample project.

    Internal Server Error in AI Chat

    If the AI chat responds with an “Internal Server Error“ message:

    • Verify that the model name, API key, endpoint, and other AI service registration parameters are correct.
    • For cloud AI providers, make sure you are online and that your firewall allows access to the provider’s endpoint.
    • Confirm that the self-hosted language model service (for example, Ollama) is active and responsive.

    Environment Variable is Not Set

    If you get an “Environment variable is not set“ exception in Visual Studio:

    • If you store AI service registration parameters in environment variables, confirm that all necessary environment variables are set.
    • Restart Visual Studio to detect the newly created environment variable.