Skip to content

feat(ai): add Impact Relay memory provider preset - #554

Draft
regimen9u wants to merge 1 commit into
tickernelz:mainfrom
regimen9u:add-impact-relay
Draft

regimen9u wants to merge 1 commit into
tickernelz:mainfrom
regimen9u:add-impact-relay

Conversation

@regimen9u

Copy link
Copy Markdown

Summary

Adds an impact-relay memory provider preset, registered the same way as the Requesty, Morse and WorldRouter presets: an entry in src/ai/memory-provider-presets.ts on top of the shared PresetOpenAIChatProvider, with no new provider class.

Impact Relay is an OpenAI-compatible gateway that serves GPT, Claude, Gemini, Grok and other models behind one key. Disclosure: I'm with the Impact Relay team.

  • memoryProvider: "impact-relay": endpoint defaults to https://api.impact-relay.com/v1, model defaults to deepseek-v4.1-flash-free (a zero-priced model on the gateway), and IMPACT_RELAY_API_KEY is used when memoryApiKey is omitted
  • Model ids are listed at GET https://api.impact-relay.com/v1/models
  • Docs: README and the six i18n READMEs, opencode-mem.example.jsonc, config template comments. The docs name the destination for conversation data (https://api.impact-relay.com)
  • Tests: key-only and env resolution cases, same as the other presets
  • No defaults change for existing users

Test plan

  • Exercised the change locally (or N/A for docs/meta-only)
    • bun test tests/ai/ai-provider-config.test.ts tests/shared/config-resolution.test.ts: 96 pass, 0 fail
    • bun run check (format + lint + typecheck) passed
    • Sent a Chat Completions request with a function tool and tool_choice: "required" to https://api.impact-relay.com/v1/chat/completions with deepseek-v4.1-flash-free using curl: it returned a tool_calls response. This was a direct HTTP call, not a run through the plugin.
  • Noted any follow-up or known limitations
    • The full bun test suite and bun run build were not run; only the two touched test files.
    • The preset has not been exercised end to end inside OpenCode.

Checklist

  • Branch is based on main (do not open PRs from commits already on main)
  • bun test passes (or N/A): only the two touched test files were run, they pass
  • bun run typecheck passes (or N/A)
  • bun run check passes (format + lint + typecheck; or N/A)
  • Docs / README updated when behavior or contribution process changes

🤖 Generated with Claude Code

Registers an impact-relay preset on the shared PresetOpenAIChatProvider:
endpoint https://api.impact-relay.com/v1, default model
deepseek-v4.1-flash-free, IMPACT_RELAY_API_KEY env fallback. Docs, example
config, config template and tests follow the Requesty preset.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant