Skip to content

Commit 11a9668

Browse files
authored
Merge pull request #2698 from github/charisk/remove-automodel-v1
Remove automodel v1 code
2 parents 2171147 + feb4bb6 commit 11a9668

File tree

10 files changed

+213
-1410
lines changed

10 files changed

+213
-1410
lines changed

extensions/ql-vscode/src/config.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,6 @@ export function showQueriesPanel(): boolean {
704704

705705
const DATA_EXTENSIONS = new Setting("dataExtensions", ROOT_SETTING);
706706
const LLM_GENERATION = new Setting("llmGeneration", DATA_EXTENSIONS);
707-
const LLM_GENERATION_V2 = new Setting("llmGenerationV2", DATA_EXTENSIONS);
708707
const FRAMEWORK_MODE = new Setting("frameworkMode", DATA_EXTENSIONS);
709708
const DISABLE_AUTO_NAME_EXTENSION_PACK = new Setting(
710709
"disableAutoNameExtensionPack",
@@ -724,10 +723,6 @@ export function showLlmGeneration(): boolean {
724723
return !!LLM_GENERATION.getValue<boolean>();
725724
}
726725

727-
export function useLlmGenerationV2(): boolean {
728-
return !!LLM_GENERATION_V2.getValue<boolean>();
729-
}
730-
731726
export function enableFrameworkMode(): boolean {
732727
return !!FRAMEWORK_MODE.getValue<boolean>();
733728
}

extensions/ql-vscode/src/data-extensions-editor/auto-model-api-v2.ts

Lines changed: 0 additions & 34 deletions
This file was deleted.

extensions/ql-vscode/src/data-extensions-editor/auto-model-api.ts

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,20 @@
11
import { Credentials } from "../common/authentication";
22
import { OctokitResponse } from "@octokit/types";
33

4-
export enum ClassificationType {
5-
Unknown = "CLASSIFICATION_TYPE_UNKNOWN",
6-
Neutral = "CLASSIFICATION_TYPE_NEUTRAL",
7-
Source = "CLASSIFICATION_TYPE_SOURCE",
8-
Sink = "CLASSIFICATION_TYPE_SINK",
9-
Summary = "CLASSIFICATION_TYPE_SUMMARY",
10-
}
11-
12-
export interface Classification {
13-
type: ClassificationType;
14-
kind: string;
15-
explanation: string;
16-
}
17-
18-
export interface Method {
19-
package: string;
20-
type: string;
21-
name: string;
22-
signature: string;
23-
usages: string[];
24-
classification?: Classification;
25-
input?: string;
26-
output?: string;
4+
export enum AutomodelMode {
5+
Unspecified = "AUTOMODEL_MODE_UNSPECIFIED",
6+
Framework = "AUTOMODEL_MODE_FRAMEWORK",
7+
Application = "AUTOMODEL_MODE_APPLICATION",
278
}
289

2910
export interface ModelRequest {
30-
language: string;
31-
candidates: Method[];
32-
samples: Method[];
11+
mode: AutomodelMode;
12+
// Base64-encoded GZIP-compressed SARIF log
13+
candidates: string;
3314
}
3415

3516
export interface ModelResponse {
36-
language: string;
37-
predicted?: Method[];
17+
models: string;
3818
}
3919

4020
export async function autoModel(

extensions/ql-vscode/src/data-extensions-editor/auto-model-usages-query.ts

Lines changed: 0 additions & 140 deletions
This file was deleted.

extensions/ql-vscode/src/data-extensions-editor/auto-model-v2.ts

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)