Skip to content

feat: add ByteDance AI terms - #2565

Merged
steebchen merged 1 commit into
mainfrom
bytedance-ai-terms-link
Jun 7, 2026
Merged

steebchen merged 1 commit into
mainfrom
bytedance-ai-terms-link

Conversation

@steebchen

@steebchen steebchen commented Jun 7, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add typed provider additionalLinks metadata for provider-specific policy links in the Data & Privacy card.
  • Update ByteDance retention metadata to 24 hours and add the BytePlus Service Specific Terms link labeled AI Terms.
  • Render additional provider policy links below the existing Data & Privacy details without changing the general Terms of Service / Privacy Policy links.

Validation

  • pnpm format passed.
  • pnpm build passed.
  • pnpm test:unit failed because the connected local Postgres test schema is stale: the user table is missing the username column expected by the current Drizzle schema. The suite reported 335 failures with errors like column "username" of relation "user" does not exist / column "username" does not exist across DB-backed specs.

Summary by CodeRabbit

  • New Features

    • Providers can now display additional links within the "Data & Privacy" section for relevant documentation and policies
  • Updates

    • Updated ByteDance provider with clarified data retention policy ("24 hours") and added "AI Terms" reference link

@coderabbitai

coderabbitai Bot commented Jun 7, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: b799caa9-8b52-46f8-86d1-ef7c388b8a4a

📥 Commits

Reviewing files that changed from the base of the PR and between dfb3252 and 1af6ff6.

📒 Files selected for processing (2)
  • apps/ui/src/components/providers/hero.tsx
  • packages/models/src/providers.ts

Walkthrough

Extended provider definitions with an optional field for additional policy links. Added a ProviderAdditionalLink interface and updated the Hero component to conditionally render these links in the "Data & Privacy" card. ByteDance provider now includes an "AI Terms" link as the initial example.

Changes

Additional Provider Links Feature

Layer / File(s) Summary
Additional links contract and provider definition
packages/models/src/providers.ts
ProviderAdditionalLink interface defines the shape of supplementary links (desc and link). ProviderDefinition extended with optional additionalLinks?: ProviderAdditionalLink[] field to carry this data.
Hero card rendering and ByteDance provider update
apps/ui/src/components/providers/hero.tsx, packages/models/src/providers.ts
Hero component conditionally renders additional links inside the "Data & Privacy" card as external anchors with safe new-tab attributes. ByteDance provider updated with "AI Terms" link and data retention period corrected to "24 hours".

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

  • theopenco/llmgateway#2290: Both PRs extend packages/models/src/providers.ts to carry legal/terms link data and update apps/ui/src/components/providers/hero.tsx to render those links in the provider hero UI (main PR via additionalLinks, retrieved PR via termsUrl/privacyPolicyUrl).

  • theopenco/llmgateway#2438: Both PRs modify apps/ui/src/components/providers/hero.tsx's "Data & Privacy" card rendering—main PR adds an additionalLinks row there, while the retrieved PR extends that same card with dataPolicy/headquarters badges/links—so the UI changes are directly connected.

Suggested reviewers

  • smakosh
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat: add ByteDance AI terms' directly relates to the main change: adding a BytePlus AI Terms link to the ByteDance provider's additional links metadata.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bytedance-ai-terms-link

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@steebchen
steebchen marked this pull request as ready for review June 7, 2026 17:27
Copilot AI review requested due to automatic review settings June 7, 2026 17:27
@steebchen
steebchen added this pull request to the merge queue Jun 7, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1af6ff641d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

consumerTraining: null,
promptLogging: false,
retentionPeriod: "0 days",
retentionPeriod: "24 hours",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Do not apply video-output retention provider-wide

The ByteDance provider covers chat and image models as well as video models (for example seed-1-6-* and seedream-* in packages/models/src/models/bytedance.ts), and the UI renders this field generically as Retention: in the Data & Privacy card. The 24-hour wording in BytePlus docs applies to generated video asset/task URLs being deleted after 24 hours, not to provider-wide prompt/data retention, so this change misstates the privacy metadata for non-video ByteDance usage. Consider leaving the provider-level retention as 0 days/unknown or making the video asset lifetime model-specific.

Useful? React with 👍 / 👎.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the provider metadata model to support provider-specific policy links in the UI’s “Data & Privacy” card, and uses it to surface BytePlus service terms (“AI Terms”) for the ByteDance provider while updating its retention period display.

Changes:

  • Added additionalLinks provider metadata for displaying extra policy/terms links in the UI.
  • Updated ByteDance data retention metadata from 0 days to 24 hours.
  • Rendered any provider additionalLinks under the Data & Privacy details in the provider hero component.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
packages/models/src/providers.ts Adds the additionalLinks provider metadata type/field and populates ByteDance’s extra “AI Terms” policy link; updates ByteDance retention.
apps/ui/src/components/providers/hero.tsx Renders additionalLinks under the Data & Privacy card as external links.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +59 to +62
export interface ProviderAdditionalLink {
desc: string;
link: string;
}
Comment on lines +227 to +238
{provider.additionalLinks.map((additionalLink) => (
<a
key={additionalLink.link}
href={additionalLink.link}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center gap-1 transition-colors hover:text-foreground"
>
{additionalLink.desc}
<ExternalLink className="h-3 w-3" />
</a>
))}
Comment on lines +1004 to +1007
{
desc: "AI Terms",
link: "https://docs.byteplus.com/en/docs/legal/docs-service-specific-terms",
},
@steebchen
steebchen removed this pull request from the merge queue due to a manual request Jun 7, 2026
@steebchen
steebchen merged commit 2617768 into main Jun 7, 2026
18 of 19 checks passed
@steebchen
steebchen deleted the bytedance-ai-terms-link branch June 7, 2026 17:35
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