LearnNewsExamplesServices
Frontmatter
id7811
titleRefactor: Move hardcoded Gemini model name to config in SessionService
stateClosed
labels
enhancementairefactoring
assigneestobiu
createdAtNov 19, 2025, 3:39 PM
updatedAtNov 19, 2025, 3:41 PM
githubUrlhttps://github.com/neomjs/neo/issues/7811
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 19, 2025, 3:41 PM

Refactor: Move hardcoded Gemini model name to config in SessionService

Closed v11.6.1 enhancementairefactoring
tobiu
tobiu commented on Nov 19, 2025, 3:39 PM

In ai/mcp/server/memory-core/services/SessionService.mjs, embeddingModel_ is configured via aiConfig.embeddingModel (using text-embedding-004), but model_ is hardcoded to gemini-2.5-flash.

We should move this hardcoded value into the configuration object (ai/mcp/server/memory-core/config.mjs) to allow for easier updates and consistency.

Tasks:

  • Add modelName (or similar) to defaultConfig in config.mjs.
  • Update SessionService.mjs to use the new config value.
tobiu added the enhancement label on Nov 19, 2025, 3:39 PM
tobiu added the ai label on Nov 19, 2025, 3:39 PM
tobiu added the refactoring label on Nov 19, 2025, 3:39 PM
tobiu assigned to @tobiu on Nov 19, 2025, 3:39 PM
tobiu referenced in commit 46c8605 - "Refactor: Move hardcoded Gemini model name to config in SessionService #7811" on Nov 19, 2025, 3:40 PM
tobiu closed this issue on Nov 19, 2025, 3:41 PM