Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

revert variable name

daniel31x1322c4fbf6133c
diff --git a/.env.sample b/.env.sample
index a5df86fa..6b86643d 100644
--- a/.env.sample
+++ b/.env.sample
@@ -41,7 +41,7 @@ NEXT_PUBLIC_RSS_POLLING_INTERVAL_MINUTES=
RSS_SUBSCRIPTION_LIMIT_PER_USER=
# AI Settings
-OLLAMA_ENDPOINT_URL=
+NEXT_PUBLIC_OLLAMA_ENDPOINT_URL=
OLLAMA_MODEL=
# AWS S3 Settings
diff --git a/lib/api/archiveHandler.ts b/lib/api/archiveHandler.ts
index b60f6b43..cff6006c 100644
--- a/lib/api/archiveHandler.ts
+++ b/lib/api/archiveHandler.ts
@@ -98,7 +98,7 @@ export default async function archiveHandler(link: LinksAndCollectionAndOwner) {
if (
user.aiTaggingMethod !== AiTaggingMethod.DISABLED &&
!link.aiTagged &&
- process.env.OLLAMA_ENDPOINT_URL
+ process.env.NEXT_PUBLIC_OLLAMA_ENDPOINT_URL
)
await autoTagLink(user, link.id);
diff --git a/lib/api/autoTagLink.ts b/lib/api/autoTagLink.ts
index 1d0f933f..08102c6a 100644
--- a/lib/api/autoTagLink.ts
+++ b/lib/api/autoTagLink.ts
@@ -33,7 +33,7 @@ export default async function autoTagLink(user: User, linkId: number) {
}
const response = await axios.post(
- process.env.OLLAMA_ENDPOINT_URL + "/api/generate",
+ process.env.NEXT_PUBLIC_OLLAMA_ENDPOINT_URL + "/api/generate",
{
model: process.env.OLLAMA_MODEL,
prompt: prompt,
diff --git a/pages/api/v1/config/index.ts b/pages/api/v1/config/index.ts
index a9913ae9..d2b761b7 100644
--- a/pages/api/v1/config/index.ts
+++ b/pages/api/v1/config/index.ts
@@ -14,6 +14,6 @@ export const getEnvData = () => {
Number(process.env.NEXT_PUBLIC_RSS_POLLING_INTERVAL_MINUTES) || null,
EMAIL_PROVIDER: process.env.NEXT_PUBLIC_EMAIL_PROVIDER === "true" || null,
MAX_FILE_BUFFER: Number(process.env.NEXT_PUBLIC_MAX_FILE_BUFFER) || null,
- AI_ENABLED: !!process.env.OLLAMA_ENDPOINT_URL || null,
+ AI_ENABLED: !!process.env.NEXT_PUBLIC_OLLAMA_ENDPOINT_URL || null,
};
};