* Add compact system prompt for local models
- Introduce compact system prompt for local models (lm studio, ollama)
- Add ApiProviderInfo { modelId, providerId } to API
- Persist promptType in global state and propagate to webview
(updateSettings, state keys/helpers, ExtensionMessage, UI context)
- Wire provider info through task pipeline to buildSystemPrompt
* isLocalModelFamily
* Add custom prompt support and LM Studio API improvements
* Enable token usage tracking in LM Studio stream responses
This change adds the stream_options parameter with include_usage: true to LM Studio API requests, allowing the system to receive token usage information along with streaming responses. This enables better tracking of token consumption for LM Studio model interactions.
* update compact system prompt
* feat: Support compact system prompt for LM studio models and token usage tracking
* clean up
* Update UI helper text
105 lines
2.8 KiB
JavaScript
105 lines
2.8 KiB
JavaScript
import { heroui } from "@heroui/react"
|
|
|
|
/** @type {import('tailwindcss').Config} */
|
|
|
|
export default {
|
|
content: {
|
|
relative: true,
|
|
files: ["./src/**/*.{jsx,tsx,mdx}", "./node_modules/@heroui/theme/dist/**/*.{ts,tsx}"],
|
|
},
|
|
theme: {
|
|
extend: {
|
|
fontFamily: {
|
|
"azeret-mono": ['"Azeret Mono"', "monospace"],
|
|
},
|
|
colors: {
|
|
background: "var(--vscode-editor-background)",
|
|
border: {
|
|
DEFAULT: "var(--vscode-focusBorder)",
|
|
panel: "var(--vscode-panel-border)",
|
|
},
|
|
foreground: "var(--vscode-foreground)",
|
|
shadow: "var(--vscode-widget-shadow)",
|
|
code: {
|
|
background: "var(--vscode-editor-background)",
|
|
foreground: "var(--vscode-editor-foreground)",
|
|
border: "var(--vscode-editor-border)",
|
|
},
|
|
sidebar: {
|
|
background: "var(--vscode-sideBar-background)",
|
|
foreground: "var(--vscode-sideBar-foreground)",
|
|
},
|
|
input: {
|
|
foreground: "var(--vscode-input-foreground)",
|
|
background: "var(--vscode-input-background)",
|
|
border: "var(--vscode-input-border)",
|
|
placeholder: "var(--vscode-input-placeholderForeground)",
|
|
},
|
|
selection: {
|
|
DEFAULT: "var(--vscode-list-activeSelectionBackground)",
|
|
foreground: "var(--vscode-list-activeSelectionForeground)",
|
|
},
|
|
button: {
|
|
background: {
|
|
DEFAULT: "var(--vscode-button-background)",
|
|
hover: "var(--vscode-button-hoverBackground)",
|
|
},
|
|
foreground: "var(--vscode-button-foreground)",
|
|
separator: "var(--vscode-button-separator)",
|
|
secondary: {
|
|
background: {
|
|
DEFAULT: "var(--vscode-button-secondaryBackground)",
|
|
hover: "var(--vscode-button-secondaryHoverBackground)",
|
|
},
|
|
foreground: "var(--vscode-button-secondaryForeground)",
|
|
},
|
|
},
|
|
muted: {
|
|
DEFAULT: "var(--vscode-editor-foldBackground)",
|
|
foreground: "var(--vscode-editor-foldPlaceholderForeground)",
|
|
},
|
|
menu: {
|
|
DEFAULT: "var(--vscode-menu-background)",
|
|
foreground: "var(--vscode-menu-foreground)",
|
|
border: "var(--vscode-menu-border)",
|
|
shadow: "var(--vscode-menu-shadow)",
|
|
},
|
|
link: {
|
|
DEFAULT: "var(--vscode-textLink-foreground)",
|
|
hover: "var(--vscode-textLink-activeForeground)",
|
|
},
|
|
list: {
|
|
background: {
|
|
hover: "var(--vscode-list-hoverBackground)",
|
|
},
|
|
},
|
|
badge: {
|
|
foreground: "var(--vscode-badge-foreground)",
|
|
background: "var(--vscode-badge-background)",
|
|
},
|
|
error: "var(--vscode-errorForeground)",
|
|
description: "var(--vscode-descriptionForeground)",
|
|
},
|
|
fontSize: {
|
|
xl: "calc(2 * var(--vscode-font-size))",
|
|
lg: "calc(1.5 * var(--vscode-font-size))",
|
|
md: "calc(1.25 * var(--vscode-font-size))",
|
|
sm: "var(--vscode-font-size)",
|
|
},
|
|
},
|
|
},
|
|
darkMode: "class",
|
|
plugins: [
|
|
heroui({
|
|
defaultTheme: "vscode",
|
|
themes: {
|
|
vscode: {
|
|
colors: {
|
|
background: "",
|
|
},
|
|
},
|
|
},
|
|
}),
|
|
],
|
|
}
|