mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 18:50:41 +01:00
feat(llm): remove everything to do with embeddings, part 3
This commit is contained in:
@@ -6,7 +6,7 @@ import type { OpenAIModelResponse, AnthropicModelResponse, OllamaModelResponse }
|
||||
|
||||
export class ProviderService {
|
||||
constructor(private $widget: JQuery<HTMLElement>) {
|
||||
// Embedding functionality removed
|
||||
// AI provider settings
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -204,7 +204,7 @@ export class ProviderService {
|
||||
try {
|
||||
// Use the general Ollama base URL
|
||||
const ollamaBaseUrl = this.$widget.find('.ollama-base-url').val() as string;
|
||||
|
||||
|
||||
const response = await server.get<OllamaModelResponse>(`llm/providers/ollama/models?baseUrl=${encodeURIComponent(ollamaBaseUrl)}`);
|
||||
|
||||
if (response && response.success && response.models && response.models.length > 0) {
|
||||
|
||||
@@ -16,7 +16,7 @@ export const TPL = `
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Embedding statistics section removed -->
|
||||
<!-- AI settings template -->
|
||||
|
||||
<div class="ai-providers-section options-section">
|
||||
<h4>${t("ai_llm.provider_configuration")}</h4>
|
||||
|
||||
Reference in New Issue
Block a user