Skip to content

Implement Together AI adapter#273

Merged
ralyodio merged 2 commits into
profullstack:masterfrom
op-simoneromeo:codex/together-chat-adapter
May 20, 2026
Merged

Implement Together AI adapter#273
ralyodio merged 2 commits into
profullstack:masterfrom
op-simoneromeo:codex/together-chat-adapter

Conversation

@op-simoneromeo
Copy link
Copy Markdown
Contributor

Summary

  • replace the ai-together stub with a Together AI OpenAI-compatible chat-completions adapter
  • use the documented https://api.together.ai/v1/chat/completions route with TOGETHER_API_KEY
  • support dry-run, system/user messages, max_tokens/temperature, stream=false, extra passthrough params, usage mapping, text-choice fallback, custom baseUrl, 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/together/src/index.test.ts
  • corepack pnpm@9.12.0 --filter @profullstack/sh1pt-ai-together typecheck
  • corepack pnpm@9.12.0 --filter @profullstack/sh1pt-ai-together build
  • git diff --check
  • common secret-pattern scan over changed Together files

No real Together API key or other production secret was used; tests mock fetch.

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

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