Skip to content

Implement W&B Inference adapter#274

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
op-simoneromeo:codex/wandb-chat-adapter
May 20, 2026
Merged

Implement W&B Inference adapter#274
ralyodio merged 1 commit into
profullstack:masterfrom
op-simoneromeo:codex/wandb-chat-adapter

Conversation

@op-simoneromeo
Copy link
Copy Markdown
Contributor

Summary

  • replace the ai-wandb stub with a W&B Inference OpenAI-compatible chat-completions adapter
  • use the documented https://api.inference.wandb.ai/v1/chat/completions route with WANDB_API_KEY
  • support dry-run, system/user messages, max_tokens/temperature, stream=false, extra passthrough params, usage mapping, text-choice fallback, custom baseUrl, optional OpenAI-Project usage tracking, and provider error excerpts
  • add mocked fetch tests for dry-run, request shape, response mapping, compatible text choices, and error handling

Validation

  • corepack pnpm@9.12.0 exec vitest run packages/ai/wandb/src/index.test.ts
  • corepack pnpm@9.12.0 --filter @profullstack/sh1pt-ai-wandb typecheck
  • corepack pnpm@9.12.0 --filter @profullstack/sh1pt-ai-wandb build
  • git diff --check
  • common secret-pattern scan over changed W&B files

No real W&B API key or other production secret was used; tests mock fetch.

@ralyodio ralyodio merged commit 9df6646 into profullstack:master May 20, 2026
4 checks passed
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