GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(ai): add TeamoRouter memory provider preset by 2867297362mjb-sketch · Pull Request #523 · tickernelz/opencode-mem

Conversation

@2867297362mjb-sketch

@2867297362mjb-sketch 2867297362mjb-sketch commented Nov 25, 2026

Copy link
Copy Markdown

Summary

Adds an optional TeamoRouter memory provider preset on the existing OpenAI Chat Completions transport, following the merged AIGROW preset in #516 (and UberLLM in #505, Standard Compute in #502). TeamoRouter is an OpenAI-compatible gateway for GLM, Kimi, DeepSeek, Qwen, Claude, GPT and Gemini on prepaid credit; model ids are bare (deepseek-v4-flash, glm-5.3, claude-sonnet-5-5, ...).

  • memoryProvider: "teamorouter": endpoint default https://api.teamorouter.com/v1, model default deepseek-v4-flash, TEAMOROUTER_API_KEY fallback, explicit env:// key configuration, and a distinct session provider tag (TeamoRouterProvider, same shape as AigrowProvider).
  • Wired into memory-provider-presets.ts, the provider factory, the provider type unions and the key resolution in config.ts.
  • README (and the six translated READMEs, reusing each one's existing AIGROW sentence) plus opencode-mem.example.jsonc: preset docs, the data-transmission note, and teamorouter added to the forceToolChoice list.

Disclosure: I work at TeamoRouter.

Default model

The preset forces tool calls by default (tool_choice: "required"). I checked that against the live endpoint with a save_memory-style tool: deepseek-v4-flash (the default) and glm-5.3 both return the forced tool call. Claude 5.5 models on TeamoRouter reject a forced tool_choice, so anyone picking those should set "forceToolChoice": false, which the README already explains.

Testing

  • bun run format:check, bun run lint, bun run typecheck: clean
  • bun test: 1294 pass, 0 fail, 4 skip (after bunx tsc so the dist/ plugin-loader contract tests have a build to read)
  • New tests/teamorouter-provider.test.ts (mirrors the AIGROW provider tests), plus TeamoRouter cases in tests/ai-provider-config.test.ts and tests/config-resolution.test.ts (key-only config, missing key, env key resolution, project config can't switch the provider)

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
2867297362mjb-sketch @claude
feat(ai): add TeamoRouter memory provider preset
f7bfc8c
Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch has not been deployed

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

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@2867297362mjb-sketch
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.