fix ts check

This commit is contained in:
duanfuxiang
2025-01-05 21:14:35 +08:00
parent 0c7ee142cb
commit 5465d5fca3
46 changed files with 11974 additions and 91 deletions

View File

@@ -108,9 +108,9 @@ class AutoComplete implements AutocompleteService {
groq: settings.groqApiKey,
infio: settings.infioApiKey,
})
const model: CustomLLMModel = settings.activeModels.find(
const model = settings.activeModels.find(
(option) => option.name === settings.chatModelId,
)
) as CustomLLMModel;
const llm = new LLMClient(llm_manager, model);
return new AutoComplete(

View File

@@ -1,8 +1,8 @@
import { Settings } from "../../../settings/versions";
import { extractNextWordAndRemaining } from "../utils";
import EventListener from "../../../event-listener";
import { DocumentChanges } from "../../../render-plugin/document-changes-listener";
import { InfioSettings } from "../../../types/settings";
import { extractNextWordAndRemaining } from "../utils";
import State from "./state";
@@ -166,7 +166,7 @@ class SuggestingState extends State {
return `Suggesting for ${this.context.context}`;
}
handleSettingChanged(settings: Settings): void {
handleSettingChanged(settings: InfioSettings ): void {
if (!settings.cacheSuggestions) {
this.clearPrediction();
}