mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 06:42:03 +00:00
24 lines
No EOL
860 B
TypeScript
24 lines
No EOL
860 B
TypeScript
import { ChatCompletionsConversationNamingAgent } from "AIClasses/ChatCompletions/ChatCompletionsConversationNamingService";
|
|
import { AIProvider } from "Enums/ApiProvider";
|
|
import { Resolve } from "Services/DependencyService";
|
|
import { Services } from "Services/Services";
|
|
import type { SettingsService } from "Services/SettingsService";
|
|
|
|
export class LocalConversationNamingAgent extends ChatCompletionsConversationNamingAgent {
|
|
|
|
private readonly settingsService: SettingsService;
|
|
|
|
public constructor() {
|
|
super(AIProvider.Local);
|
|
this.settingsService = Resolve<SettingsService>(Services.SettingsService);
|
|
}
|
|
|
|
protected get apiUrl(): string {
|
|
return this.settingsService.settings.localUrl;
|
|
}
|
|
|
|
protected get namerModel(): string {
|
|
return this.settingsService.settings.localModels.quickActionModel;
|
|
}
|
|
|
|
} |