LearnNewsExamplesServices
Frontmatter
id8000
titleAllow Memory Core to start without GEMINI_API_KEY (TextEmbeddingService)
stateClosed
labels
bugai
assigneestobiu
createdAtDec 2, 2025, 8:57 PM
updatedAtDec 2, 2025, 9:38 PM
githubUrlhttps://github.com/neomjs/neo/issues/8000
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 2, 2025, 9:38 PM

Allow Memory Core to start without GEMINI_API_KEY (TextEmbeddingService)

Closed v11.16.0 bugai
tobiu
tobiu commented on Dec 2, 2025, 8:57 PM

TextEmbeddingService currently throws an error in its construct method if GEMINI_API_KEY is missing. This prevents the Memory Core server from starting in a degraded state, which is the intended behavior when the key is not configured (e.g. for database lifecycle management only).

Error:

Error: The GEMINI_API_KEY environment variable must be set to use semantic search endpoints.
    at TextEmbeddingService.construct ...

Goal:

  • Modify TextEmbeddingService to log a warning instead of throwing during construction.
  • Ensure methods like embed throw a helpful error when called if the key is missing, rather than preventing startup.
tobiu added the bug label on Dec 2, 2025, 8:57 PM
tobiu added the ai label on Dec 2, 2025, 8:57 PM
tobiu assigned to @tobiu on Dec 2, 2025, 8:57 PM
tobiu referenced in commit 78aa586 - "Allow Memory Core to start without GEMINI_API_KEY (TextEmbeddingService) #8000" on Dec 2, 2025, 9:38 PM
tobiu closed this issue on Dec 2, 2025, 9:38 PM