Commit Graph
12 Commits
Author SHA1 Message Date
Joseph Magly 5e40e60f47 feat(llm): native Google Gemini provider via OpenAI-compatible endpoint
Add a first-class `gemini` provider so operators can drive missions with a
direct GEMINI_API_KEY, instead of only reaching Gemini through OpenRouter.

Gemini is wired exactly like xAI: dispatched through OpenAIAdapter against
Google's OpenAI-compatible surface. The base URL is
https://generativelanguage.googleapis.com/v1beta/openai — the `/openai`
segment is required because OpenAIAdapter posts to `${baseUrl}/chat/completions`;
without it requests hit `/v1beta/chat/completions`, which Google does not serve.

Wires the provider through the type union, adapter factory, config
(interface, defaults, model catalog, key env map, getLLMConfig, fallback
chain, redaction, .env template), and adds regression tests pinning the
`/openai` base-URL segment.
2026-07-08 11:59:18 -04:00
yaraul 2613daef49 fix(llm): support versioned OpenAI-compatible endpoints + optional bearer for local provider
Two issues blocked OpenAI-compatible servers that aren't Ollama-on-/v1:

1. LocalAdapter.isOpenAIWire matched only a literal /v1 path, so versioned
   endpoints like Zhipu/z.ai's /api/paas/v4 silently fell through to Ollama's
   native /api/chat wire format and failed. Match any /vN instead of literally /v1.

2. The `local` provider was treated as always-keyless, so servers that require
   a bearer (Zhipu/z.ai, Together, ...) could never authenticate. Read an
   optional key from TEMPEST_LOCAL_API_KEY (ZAI_API_KEY / ZHIPUAI_API_KEY as
   aliases), wire it through getApiKey/hasApiKey so `tempest test` and the
   mission engine accept a configured local provider, and document the options
   in the env template.

The key is read from env in-memory and never persisted into the store, matching
the existing env-key hardening invariant (api-key-env-static).

Adds src/__tests__/local-openai-wire-static.test.ts pinning both fixes.
Verified end-to-end against z.ai's GLM models (glm-4.5-air / 4.6 / 5.2).
2026-07-06 19:51:18 +03:00
Eddy ba1179d469 fix: keep API key setup and export in sync 2026-07-06 01:00:56 +02:00
t3mp3st contributors fe5bc2c3cb feat(xai): verified grok-4.3 option + model-list receipt
Model IDs confirmed against xAI's published list (docs.x.ai/docs/models, 2026-07-05):
grok-build-0.1 (coding, 256K) and grok-4.3 (general, 1M). Addresses PR review P2.
2026-07-05 17:31:11 -04:00
t3mp3st contributors 0cb1642543 feat(xai): Grok Build as a first-class provider (grok-build-0.1) via xAI OpenAI-compatible API 2026-07-05 17:27:41 -04:00
t3mp3st contributors eac30e4ee3 feat(local-models): self-hosted backbone runs the Arsenal (Ollama + OpenAI-compatible) 2026-07-05 17:25:50 -04:00
pliny 45ec6e4884 Merge pull request #2 from bizstpa/fix/gemini-pro-openrouter-typo
fix: update outdated OpenRouter gemini-3-pro-preview model ID to gemini-3.1
2026-07-05 13:56:50 -04:00
Eddy 2fd02cbec9 fix: avoid implicit API key imports 2026-07-05 12:16:27 +02:00
faber 6c57e09023 T3MP3ST v1 — hardened launch (AGPL, verify-claims 24/24, leak-scrubbed) 2026-07-04 21:11:05 -04:00
t3mp3st contributors 184c7d4e59 T3MP3ST public launch build 2026-07-03 10:57:20 -04:00
Ryan Khatib 394b004015 fix: update outdated OpenRouter gemini-3-pro-preview model ID to gemini-3.1 2026-07-03 01:41:14 +03:00
pliny 5bec530a89 Add files via upload 2026-07-02 13:56:02 -04:00