diff --git a/client/src/copilot/generators/suggestionProvider.ts b/client/src/copilot/generators/suggestionProvider.ts index ae75f9e..04e787f 100644 --- a/client/src/copilot/generators/suggestionProvider.ts +++ b/client/src/copilot/generators/suggestionProvider.ts @@ -19,7 +19,7 @@ export async function getSuggestion(client: LanguageClient, documents: Documents case 'openai': apiUrl = DEFAULT_LLM_ENDPOINTS.OPENAI; break; - case 'mistralai': + case 'mistral': apiUrl = DEFAULT_LLM_ENDPOINTS.MISTRALAI; break; default: diff --git a/client/src/copilot/modelGeneratorWizard/modelGeneratorPanel.ts b/client/src/copilot/modelGeneratorWizard/modelGeneratorPanel.ts index db65f0e..db81f99 100644 --- a/client/src/copilot/modelGeneratorWizard/modelGeneratorPanel.ts +++ b/client/src/copilot/modelGeneratorWizard/modelGeneratorPanel.ts @@ -53,9 +53,11 @@ export function createFileGeneratorPanel(context: vscode.ExtensionContext, clien try { await generateGrammarFile(client, message.filePath); updateGeneratingState('grammar', false); + vscode.window.showInformationMessage('Grammar file generated successfully'); } catch (error) { log(`Error generating grammar file: ${error.message}`); updateGeneratingState('grammar', false, error.message); + vscode.window.showErrorMessage('Error generating grammar file'); } break; case FILE_GENERATORS.GENERATE_MODEL_FILE: @@ -63,9 +65,11 @@ export function createFileGeneratorPanel(context: vscode.ExtensionContext, clien try { await generateModelFile(client, message.packageFile, message.grammarFile); updateGeneratingState('model', false); + vscode.window.showInformationMessage('Model file generated successfully'); } catch (error) { log(`Error generating model file: ${error.message}`); updateGeneratingState('model', false, error.message); + vscode.window.showErrorMessage('Error generating model file'); } break; case FILE_GENERATORS.REQUEST_FILE_LIST: diff --git a/client/src/copilot/utils/constants.ts b/client/src/copilot/utils/constants.ts index f4844ec..8dbc4cb 100644 --- a/client/src/copilot/utils/constants.ts +++ b/client/src/copilot/utils/constants.ts @@ -87,7 +87,7 @@ export const DEFAULT_LLM_MODELS = { export const DEFAULT_LLM_ENDPOINTS = { GEMINI: 'https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent', OPENAI: 'https://api.openai.com/v1/chat/completions', - MISTRALAI: 'https://api.mistralai.com/v1/chat/completions' + MISTRALAI: 'https://api.mistral.ai/v1/chat/completions' }; // Constants for Panel Manager