Skip to content

Implement Infermatic AI adapter#271

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

Implement Infermatic AI adapter#271
ralyodio merged 1 commit into
profullstack:masterfrom
op-simoneromeo:codex/infermatic-chat-adapter

Conversation

@op-simoneromeo
Copy link
Copy Markdown
Contributor

Summary

  • replace the Infermatic stub with a real OpenAI-compatible chat-completions adapter against https://api.totalgpt.ai/v1/chat/completions
  • use INFERMATIC_API_KEY, sane default/example models from the Infermatic docs, dry-run short-circuiting, extra parameter passthrough, usage mapping, and provider error excerpts
  • add focused mocked fetch coverage for dry-run, request shape, text-choice fallback, and error handling

Validation

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

No real Infermatic API key or 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.

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 merged commit 68227eb 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