qoder

command
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2026 License: MIT Imports: 35 Imported by: 0

Documentation

Overview

Command qoder builds the CPA c-shared plugin library for Qoder.

Both files in this directory are package main: main.go carries the exported cgo ABI and plugin.go carries the abiboot.Plugin implementation. Keeping the plugin implementation in the same package is what lets `go build -buildmode=c-shared ./plugins/qoder` (see scripts/build.sh) emit the shared object directly from this directory.

Package main is the CPA native plugin adapter for Qoder.

It covers both Qoder sites (`qoder` international and `qoder-cn`) behind one provider key: the region is a configuration field and each credential records the site that issued it, because the two sites never share credentials.

Two inference paths exist and they are NOT interchangeable (`qoder-adapter.ts:4-20`, `AGENTS.md`):

  • the encrypted path (`api2.qoder.sh/algo/api/v2/service/pro/sse/agent_chat_generation`) accepts the catalog keys (`qfmodel`, `dmodel`, ...) and needs the request signed by the Qoder WASM. The plugin drives that WASM through wazero when `wasm_path` points at a local copy of the artifact, and forwards the headers it produces verbatim;
  • the public path (`api2-v2.qoder.sh/model/v1/chat/completions`) is a plain OpenAI-compatible endpoint that accepts only generic model names. It is what runs when no signer is configured.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL