Add VS Code LM API

This commit is contained in:
Saoud Rizwan committed 2025-01-20 16:12:10 -08:00
1 parent 8d7b70b1e5
commit 8ec0b2cf08
15 files changed
+916 -17

No files matched your search

+7
View File
@@ -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)
}