diff --git a/schema/inline-provider.json b/schema/inline-provider.json deleted file mode 100644 index 12a7219..0000000 --- a/schema/inline-provider.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "title": "Codestral", - "description": "Codestral settings", - "type": "object", - "properties": { - "apiKey": { - "type": "string", - "title": "The Codestral API key", - "description": "The API key to use for Codestral", - "default": "" - } - }, - "additionalProperties": false -} diff --git a/schema/llm-provider.json b/schema/llm-provider.json index 2855e34..c85bf43 100644 --- a/schema/llm-provider.json +++ b/schema/llm-provider.json @@ -8,10 +8,7 @@ "title": "The LLM provider", "description": "The LLM provider to use for chat and completion", "default": "None", - "enum": [ - "None", - "MistralAI" - ] + "enum": ["None", "MistralAI"] }, "apiKey": { "type": "string", diff --git a/src/provider.ts b/src/provider.ts index a7c26bd..7030eed 100644 --- a/src/provider.ts +++ b/src/provider.ts @@ -35,17 +35,15 @@ export class LlmProvider implements ILlmProvider { } setProvider(name: string | null, settings: ReadonlyPartialJSONObject) { - console.log('SET PROVIDER', name); if (name === null) { - // TODO: the inline completion is not disabled, it should be removed/disabled - // from the manager. + // TODO: the inline completion is not disabled. + // It should be removed/disabled from the manager. this._providerChange.emit(); return; } const providers = this._completionProviders.get(name); if (providers !== undefined) { - console.log('Provider defined'); // Update the inline completion provider settings. this._updateConfig(providers.completionProvider.client, settings); @@ -58,7 +56,6 @@ export class LlmProvider implements ILlmProvider { } return; } - console.log('Provider undefined'); if (name === 'MistralAI') { this._name = 'MistralAI'; const mistralClient = new MistralAI({ apiKey: 'TMP' }); diff --git a/yarn.lock b/yarn.lock index 7bf63b1..47e6599 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4887,6 +4887,7 @@ __metadata: "@langchain/mistralai": ^0.1.1 "@lumino/coreutils": ^2.1.2 "@lumino/polling": ^2.1.2 + "@lumino/signaling": ^2.1.2 "@types/json-schema": ^7.0.11 "@types/react": ^18.0.26 "@types/react-addons-linked-state-mixin": ^0.14.22