Skip to content

[good first issue-platform adapt-gp.nvim] Add Memory adapter for gp.nvim - #1158

Open
LeonSGP43 wants to merge 1 commit into
TencentCloud:feat/server_teamfrom
LeonSGP43:feat/gp-nvim-adapter
Open

LeonSGP43 wants to merge 1 commit into
TencentCloud:feat/server_teamfrom
LeonSGP43:feat/gp-nvim-adapter

Conversation

@LeonSGP43

Copy link
Copy Markdown
Contributor

Summary

Adds a docs-only adapter for gp.nvim (Robitx/gp.nvim, the GPT plugin for Neovim with chat/command/inplace workflows), connecting it to the TencentDB Agent Memory proxy through its native OpenAI-compatible providers table.

  • adapters/gp-nvim/README.md + README_CN.md (EN/CN, same structure as the avante.nvim / codecompanion.nvim docs-only adapters)
  • No code changes: the provider entry (endpoint, secret) and the agent link (provider = ...) live in the user's own Neovim config, so no files ship with the adapter.

How it connects (verified against official sources)

  • gp.nvim supports "Any other 'OpenAI chat/completions' compatible endpoint" via the providers table (official README, Multiple providers section); the built-in ollama entry (endpoint = "http://localhost:11434/v1/chat/completions", no secret) is the canonical local-endpoint example.
  • Unlike base-URL clients, gp.nvim's endpoint is the full chat completions URL — the adapter points it at the proxy's canonical route http://127.0.0.1:8096/codebuddy/<spaceId>/v1/chat/completions.
  • secret supports os.getenv(...) for API keys (same capability as the legacy openai_api_key field per the README), so the sk-mem-... business user key is sent as Authorization: Bearer without landing in dotfiles.

Contents

  • Prerequisites (one-command stack, business sk-mem-... user key)
  • Setup: export key → declare provider + agent → align model with PROXY_UPSTREAM_MODEL → verify via :GpChatNew and the session picker
  • Configuration reference table + troubleshooting table (404/key/model-id/session-picker/GUI-env rows)
  • Notes: docs-only rationale, chat/command coverage, data-flow statement

Part of the platform-adapt batch tracked in #926.

…roviders table)

Docs-only adapter connecting Robitx/gp.nvim to the memory proxy through
its native providers table: endpoint is the full chat completions URL
(/codebuddy/<spaceId>/v1/chat/completions, same shape as the built-in
ollama entry) and secret resolves the sk-mem-... business user key via
os.getenv. EN/CN README with setup, configuration reference, and
troubleshooting, following the avante.nvim / codecompanion.nvim format.

Signed-off-by: LeonSGP43 <cine.dreamer.one@gmail.com>
@Maxwell-Code07

Copy link
Copy Markdown
Collaborator

Thank you so much for your attention and contribution! We will arrange an internal review for this PR shortly, and all feedback will be shared right here in the discussion.

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.

2 participants