Skip to content

feat: run content generation on Kyma API - #3

Merged
sonpiaz merged 1 commit into
mainfrom
feat/run-on-kyma
Sep 12, 2026
Merged

sonpiaz merged 1 commit into
mainfrom
feat/run-on-kyma

Conversation

@sonpiaz

@sonpiaz sonpiaz commented Sep 12, 2026

Copy link
Copy Markdown
Member

What

The Write and Generate Image steps call Claude Sonnet 4.6 through Kyma API's Anthropic-compatible endpoint instead of calling Anthropic directly.

File Change
src/app/api/write/route.ts new Anthropic()new Anthropic({ baseURL: "https://kymaapi.com", apiKey: process.env.KYMA_API_KEY }), model claude-sonnet-4-6
src/app/api/image/route.ts same two changes
.env.example, README.md ANTHROPIC_API_KEYKYMA_API_KEY, setup text and the Deploy button updated

Brave Search in src/app/api/research/route.ts is unchanged.

Why

The live demo stalls at "Generating..." on step 4. Research works, and the write and image routes validate input correctly, so the failure is in the model call.

Verified

  • KYMA_API_KEY is set on the Vercel project in Production, using a dedicated key named content-pipeline-demo.
  • A direct call to https://kymaapi.com/v1/messages with that key and claude-sonnet-4-6 returns a completion.
  • npx tsc --noEmit passes.

After merge, run all four steps on the live demo and confirm step 4 produces text.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JjoE3dRyR4WnS3zjGkAAgS

The write and image routes now call Claude Sonnet 4.6 through Kyma's
Anthropic-compatible endpoint, so the app needs one KYMA_API_KEY instead of
an Anthropic key. The SDK calls are unchanged: only the client base URL, the
key, and the model id move. Brave Search still powers the research step.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JjoE3dRyR4WnS3zjGkAAgS
@vercel

vercel Bot commented Sep 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
affitor-content-pipeline Ready Ready Preview Sep 12, 2026 8:21pm UTC

Request Review

@sonpiaz
sonpiaz merged commit 4c44f8d into main Sep 12, 2026
3 checks passed
@sonpiaz
sonpiaz deleted the feat/run-on-kyma branch September 12, 2026 20:28
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