Commit graph

4 commits

Author SHA1 Message Date
305ab1cecd feat: OpenAI and Anthropic wire-format adapters via new api input
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 2s
sign-bundle / sign (push) Has been cancelled
New optional input api: ollama|openai|anthropic (default ollama —
existing flows unchanged).

- openai: OpenAI Chat Completions format (/v1/chat/completions),
  Bearer auth — targets vLLM and compatible self-hosted servers.
- anthropic: Messages API (/v1/messages), x-api-key +
  anthropic-version headers, top-level system field, mandatory
  max_tokens (fixed 4096).
- Audit outputs unchanged: model_endpoint/model_name always set;
  model_digest stays Ollama-only (no digest API on openai/anthropic,
  field is left empty rather than fabricated).
- api_key is only ever placed in auth headers; never in outputs,
  errors, or audit events (verified against the event log).
- No streaming, no tool calls.

Bump module + capability version to 0.2.0. Wire-format unit tests
for request serialization and response parsing against fixed JSON
fixtures; live smoke green on the ollama path and on the openai
path against an OpenAI-compatible local endpoint.

Signed-off-by: flemming-it <sf@flemming.it>
2026-07-11 23:19:32 +02:00
b5389fce45 chore(build): pin chain-module-sdk v0.3.0 and adopt #[chain_module]
SDK 0.3.0 drops the fai-legacy #[fai_module] alias; pin the tag and
flip the attribute, rebuilt module.wasm accordingly.

Signed-off-by: flemming-it <sf@flemming.it>
2026-07-11 23:12:39 +02:00
88c5a0c158 chore(build): rebuild module.wasm against current module ABI
Prebuilt wasm exported a stale ABI (no exported instance
chain:platform/invoke@1.0.0); rebuilt from source so llm.chat loads in
the current hub.

Signed-off-by: flemming-it <sf@flemming.it>
2026-07-06 01:22:12 +02:00
38f9eeac0f chore: org rename fai-modules/fai-plugins -> chain-modules/chain-plugins + LICENSE holder
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 2s
Signed-off-by: flemming-it <sf@flemming.it>
2026-06-16 18:25:36 +02:00