Skip to content

docs: per-purpose inference env vars#1

Open
ttupper92618 wants to merge 2 commits intomainfrom
feat/per-purpose-inference-docs
Open

docs: per-purpose inference env vars#1
ttupper92618 wants to merge 2 commits intomainfrom
feat/per-purpose-inference-docs

Conversation

@ttupper92618
Copy link
Copy Markdown

Summary

  • Adds per-purpose inference env vars to all 4 compose files, .env.example, and README
  • Companion to foxmemory-store#9

New variables (all optional, all fall back to shared OPENAI_*)

Variable Purpose
MEM0_LLM_BASE_URL / MEM0_LLM_API_KEY Main LLM endpoint override
MEM0_EMBED_BASE_URL / MEM0_EMBED_API_KEY Embedder endpoint override
MEM0_GRAPH_LLM_BASE_URL / MEM0_GRAPH_LLM_API_KEY Graph LLM endpoint override
MEM0_GRAPH_EXTRACTION_STRATEGY tool_calling (default) or json_prompting

Files changed

  • .env.example — documented with fallback comments
  • compose.one.yml / compose.split.yml / compose.external.yml / compose.graph.yml — env vars added to store service
  • README.md — new "Per-purpose inference" table

Test plan

  • docker compose -f compose.one.yml config validates without errors
  • Deploy without new vars set: identical behavior (all fall back to shared OPENAI_*)

🤖 Generated with Claude Code

Thomas Tupper and others added 2 commits March 7, 2026 10:58
Exposes MEM0_LLM_BASE_URL, MEM0_LLM_API_KEY, MEM0_EMBED_BASE_URL,
MEM0_EMBED_API_KEY, MEM0_GRAPH_LLM_BASE_URL, MEM0_GRAPH_LLM_API_KEY,
and MEM0_GRAPH_EXTRACTION_STRATEGY across all 4 compose files,
.env.example, and README.

All vars are optional and fall back to OPENAI_BASE_URL / OPENAI_API_KEY.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 992392c002

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

from pathlib import Path
p=Path("$COMPOSE_FILE")
s=p.read_text()
s=s.replace('NEO4J_AUTH: neo4j/${NEO4J_PASSWORD}','NEO4J_AUTH: none')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Disable auth using the compose placeholder syntax

The auth toggle targets NEO4J_AUTH: neo4j/${NEO4J_PASSWORD} here, but the default compose file uses NEO4J_AUTH: ${NEO4J_AUTH:-neo4j/changeme} (compose.graph.yml), so this replacement is a no-op in the shipped topology. That leaves auth enabled and makes the subsequent unauthenticated cypher-shell ALTER USER ... step fail, so neo4j-auth-rotate.sh cannot complete successfully out of the box.

Useful? React with 👍 / 👎.

Comment on lines +29 to +30
if grep -q '^NEO4J_PASSWORD=' "$ENV_FILE"; then
sed -i.bak "s#^NEO4J_PASSWORD=.*#NEO4J_PASSWORD=${NEW_PASS}#" "$ENV_FILE"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update .env only after password rotation succeeds

This script rewrites NEO4J_PASSWORD in .env before attempting any restart or password change in Neo4j. If a later step fails (container name mismatch, startup timing, cypher error), the file now contains a password that was never applied, causing auth drift and breaking subsequent preflight/restart flows until someone manually repairs .env.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant