gitbutlerapp/gitbutler · error
Please check LM Studio configuration: endpoint=
Error message
Please check LM Studio configuration: endpoint=${endpoint} What it means
Validation branch of the AI credential test for the LM Studio model kind: validateConfiguration() failed and the error embeds the configured LM Studio endpoint so the user can see the setting at fault. It fires when the LM Studio local server is not reachable at that endpoint or the model configuration is missing, since LM Studio needs no credentials.
Solutions
- Start LM Studio's local server and confirm the endpoint URL/port in AI settings
- Check that a model is loaded in LM Studio and that the model name in settings matches
- Verify firewall/localhost settings allow the app to reach the endpoint
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at apps/desktop/src/components/settings/AiCredentialCheck.svelte:91 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/fa91daae349ca67f.
Report an issue: GitHub.
Appendix: source
Thrown at apps/desktop/src/components/settings/AiCredentialCheck.svelte:91
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;
isStreaming = false; // Make sure streaming state is reset on timeout
debugInfo += `, Timeout after 20s`;
// Abort the request if possible
if (abortController) {
try {View on GitHub (pinned to 58e5313667)