-
Notifications
You must be signed in to change notification settings - Fork 812
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First draft for an API to add models from other VSCode extensions.
Exports functions "addExtensionModel" and "removeExtensionModel" through the VSCode extension API. `addExtensionModel` accepts a `CustomLLM` object, as well as callbacks to the third-party extension to be notified when the model is added and removed. Added field `extensionModels` to `ContinueConfig`, which holds the `CustomLLM` model specifications for models added by extensions. This field is not serialized to `config.json`. Config loading routines are adadpted to construct `CustomLLMClass` instances from all models declared in `extensionModels` and add them to `models`. Also reworked `vscode/src/loadConfig.ts:ConfigHandler` to keep track of extension models on the VSCode extension side and improve configuration update event handling generally.
- Loading branch information
Showing
9 changed files
with
220 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.