Skip to content

feat(ai): integrate Fireworks adapter#79

Closed
Photon101 wants to merge 1 commit into
profullstack:masterfrom
Photon101:photon101/ai-fireworks-adapter
Closed

feat(ai): integrate Fireworks adapter#79
Photon101 wants to merge 1 commit into
profullstack:masterfrom
Photon101:photon101/ai-fireworks-adapter

Conversation

@Photon101
Copy link
Copy Markdown
Contributor

Summary

  • replace the Fireworks AI stub with a working OpenAI-compatible chat completions implementation
  • use Fireworks' documented OpenAI-compatible base URL, https://api.fireworks.ai/inference/v1
  • preserve dry-run behavior, map usage tokens, pass provider-specific options through opts.extra, and surface concise HTTP error excerpts
  • cover request shape, dry-run short-circuiting, and error handling with focused Vitest tests

This implements another AI provider adapter for #6.

Notes

Fireworks documents OpenAI compatibility for chat completions at /chat/completions under the https://api.fireworks.ai/inference/v1 base URL. The adapter keeps baseUrl override support for custom deployments.

Validation

  • git diff --check
  • corepack pnpm exec vitest run packages/ai/fireworks/src/index.test.ts
  • corepack pnpm exec tsc -p packages/ai/fireworks/tsconfig.json --noEmit

The full workspace install remains blocked by the unrelated packages/dns/azure dependency on missing workspace package @sh1pt/core; this package was validated with root dev tooling and a local link to packages/core.

@ralyodio ralyodio self-assigned this May 13, 2026
@github-actions
Copy link
Copy Markdown

🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: git fetch upstream master && git rebase upstream/master.

3 similar comments
@github-actions
Copy link
Copy Markdown

🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: git fetch upstream master && git rebase upstream/master.

@github-actions
Copy link
Copy Markdown

🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: git fetch upstream master && git rebase upstream/master.

@github-actions
Copy link
Copy Markdown

🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: git fetch upstream master && git rebase upstream/master.

@ralyodio ralyodio closed this May 22, 2026
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