File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import Configuration from "../configuration";
6
6
export type AiProvider = "none" | "Ollama" | "GitHub Copilot" ;
7
7
8
8
export class AiConfig {
9
+
9
10
static getProvider ( ) : AiProvider {
10
11
return Configuration . get < AiProvider > ( `ai.provider` ) ;
11
12
}
Original file line number Diff line number Diff line change 7
7
LanguageModelChatResponse ,
8
8
} from "vscode" ;
9
9
import Configuration from "../configuration" ;
10
- import { AiConfig , AiProvider } from "./aiConfig" ;
10
+ import { AiConfig } from "./aiConfig" ;
11
+ import { AiProvider } from "./types" ;
11
12
12
13
export async function chatRequest (
13
14
provider : AiProvider ,
Original file line number Diff line number Diff line change
1
+ export interface LLMConfig {
2
+ model : string ;
3
+ provider : AiProvider
4
+ }
5
+
6
+ export type AiProvider = "Ollama" | "GitHub Copilot" ;
You can’t perform that action at this time.
0 commit comments