gitbutlerapp/gitbutler · error
Please check Ollama configuration: endpoint=
Error message
Please check Ollama configuration: endpoint=${endpoint}, model=${model} What it means
Validation branch of the AI credential test for the Ollama model kind: validateConfiguration() failed, and the error interpolates the currently configured Ollama endpoint and model name so the user can see which settings are at fault. It typically fires when the Ollama server is unreachable at that endpoint or the configured model name is not available locally.
Solutions
- Start the Ollama server (ollama serve) and confirm it is listening on the configured endpoint
- Verify the model exists locally with `ollama list` and correct the model name in AI settings
- Check that the endpoint URL and port in AI settings are correct and reachable from the app
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at apps/desktop/src/components/settings/AiCredentialCheck.svelte:85 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of gitbutlerapp/gitbutler@58e5313667 (2026-09-18).
Data as JSON: /api/errors/c54f66bb12bf9df7.
Report an issue: GitHub.
Appendix: source
Thrown at apps/desktop/src/components/settings/AiCredentialCheck.svelte:85
isUsingButlerAPI = await aiService.usingGitButlerAPI();
debugInfo += `, Using GB API: ${isUsingButlerAPI}`;
// Check if configuration is valid
const isConfigValid = await aiService.validateConfiguration();
debugInfo += `, Config valid: ${isConfigValid}`;
if (!isConfigValid) {
if (modelKind === ModelKind.OpenAI || modelKind === ModelKind.Anthropic) {
if (isUsingButlerAPI && !userService.user) {
throw new Error("Please sign in to use GitButler's AI API");
} else {
throw new Error("Please provide a valid API key for your selected AI service");
}
} else if (modelKind === ModelKind.Ollama) {
// Get Ollama configuration for more detailed error
const endpoint = await aiService.getOllamaEndpoint();
const model = await aiService.getOllamaModelName();
throw new Error(
`Please check Ollama configuration: endpoint=${endpoint}, model=${model}`,
);
} else if (modelKind === ModelKind.LMStudio) {
// Get LM Studio configuration for more detailed error
const endpoint = await aiService.getLMStudioEndpoint();
throw new Error(`Please check LM Studio configuration: endpoint=${endpoint}`);
}
}
debugInfo += `, Testing commit message generation`;
// Set a timeout to fail if the streaming doesn't start or complete
testTimeout = setTimeout(() => {
if (testing) {
console.error("AI response timed out after 20 seconds");
error =
"AI response timed out after 20 seconds. Please check if your AI service is running properly.";
testing = false;View on GitHub (pinned to 58e5313667)