Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First draft for an API to add models from other VSCode extensions. #827

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Feb 6, 2024

  1. 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.
    lupreCSC committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    5091a06 View commit details
    Browse the repository at this point in the history