mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-25 09:31:43 +01:00
* feat(benchmark): particle-1 and DeepSeek V4.1 Flash awareness, gateway provider, preregistered model panel (GSTA-173) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs(evals): particle-1 model panel results, run 2026-10-30-0105 (GSTA-173) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test(model-panel): name the task field id (credential scanner false positive on key) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test: gateway reports a missing OpenRouter key first; register the model panel in the paid count and test-of-test baseline Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test: run the fake claude through bun so the gateway provider test passes on Windows Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: pre-landing review fixes Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: gateway benchmark runs load no Claude Code settings A settings.json env block's ANTHROPIC_API_KEY was sent to the OpenRouter base URL as x-api-key; --setting-sources '' loads no settings source. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs: name particle-1 and DeepSeek V4.1 Flash in the /benchmark-models row Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * chore: changelog fragment and TODOS for the particle-1 model panel Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs: name particle-1 and DeepSeek V4.1 Flash in the AGENTS.md /benchmark-models row Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --------- Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
22 lines
819 B
TypeScript
22 lines
819 B
TypeScript
import type { ProviderAdapter } from './types';
|
|
import { ClaudeAdapter } from './claude';
|
|
import { GptAdapter } from './gpt';
|
|
import { GeminiAdapter } from './gemini';
|
|
import { GatewayAdapter } from './gateway';
|
|
|
|
/** The one provider registry the benchmark CLI, its dry run and the runner share. */
|
|
export const PROVIDERS = {
|
|
claude: () => new ClaudeAdapter(),
|
|
gpt: () => new GptAdapter(),
|
|
gemini: () => new GeminiAdapter(),
|
|
particle: () => new GatewayAdapter('particle'),
|
|
deepseek: () => new GatewayAdapter('deepseek'),
|
|
} satisfies Record<string, () => ProviderAdapter>;
|
|
|
|
export type ProviderName = keyof typeof PROVIDERS;
|
|
export const PROVIDER_NAMES = Object.keys(PROVIDERS) as ProviderName[];
|
|
|
|
export function isProviderName(name: string): name is ProviderName {
|
|
return Object.hasOwn(PROVIDERS, name);
|
|
}
|