Add VS Code LM API
This commit is contained in:
1 parent
8d7b70b1e5
commit
8ec0b2cf08
15 files changed
+916
-17
No files matched your search
@@ -0,0 +1,7 @@
|
||||
import { LanguageModelChatSelector } from "vscode"
|
||||
|
||||
export const SELECTOR_SEPARATOR = "/"
|
||||
|
||||
export function stringifyVsCodeLmModelSelector(selector: LanguageModelChatSelector): string {
|
||||
return [selector.vendor, selector.family, selector.version, selector.id].filter(Boolean).join(SELECTOR_SEPARATOR)
|
||||
}
|
||||
Reference in new issue
Block a user