Skip to content

Implement Clarifai AI adapter#276

Open
op-simoneromeo wants to merge 1 commit into
profullstack:masterfrom
op-simoneromeo:codex/clarifai-chat-adapter
Open

Implement Clarifai AI adapter#276
op-simoneromeo wants to merge 1 commit into
profullstack:masterfrom
op-simoneromeo:codex/clarifai-chat-adapter

Conversation

@op-simoneromeo
Copy link
Copy Markdown
Contributor

@op-simoneromeo op-simoneromeo commented May 20, 2026

Summary

  • replace the Clarifai placeholder with Clarifai's documented OpenAI-compatible chat-completions endpoint
  • use CLARIFAI_PAT, current Clarifai model URLs, dry-run behavior, custom baseUrl, usage mapping, and provider error excerpts
  • add mocked tests for request shape, dry-run, compatible text fallback, and errors

Validation

  • pnpm vitest run packages/ai/clarifai/src/index.test.ts
  • pnpm --filter @profullstack/sh1pt-ai-clarifai typecheck
  • pnpm --filter @profullstack/sh1pt-ai-clarifai build
  • git diff --check
  • secret-pattern scan over packages/ai/clarifai found no matches

Docs used: https://docs.clarifai.com/compute/inference/open-ai/

No real Clarifai PAT or other secret was used or committed.

@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.

6 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.

@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.

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.

1 participant