Skip to content

Docs/remove byok billing section#844

Merged
francesca-factory merged 4 commits intomainfrom
docs/remove-byok-billing-section
Mar 25, 2026
Merged

Docs/remove byok billing section#844
francesca-factory merged 4 commits intomainfrom
docs/remove-byok-billing-section

Conversation

@francesca-factory
Copy link
Contributor

No description provided.

francesca-factory and others added 4 commits March 5, 2026 17:48
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
…analytics API

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@factory-droid
Copy link
Contributor

factory-droid bot commented Mar 25, 2026

Droid finished @francesca-factory's task —— View job


return body

# Split content into code blocks and non-code segments
parts = re.split(r'(```[\s\S]*?```)', body)
Copy link
Contributor

Choose a reason for hiding this comment

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

[P1] Translation no longer deterministically preserves inline code/MDX/link structure

translate_body only protects fenced code blocks, so inline code spans (backticks), JSX/MDX expressions ({...}), and link/image syntax are now sent to the model without placeholders/AST protection. Even small model drift can corrupt MDX and break the docs build; consider reintroducing deterministic preservation for inline code + JSX/MDX constructs + link destinations (or parsing MDX and translating only text nodes/attribute values).

- MDX component tags and structure
- Line breaks and paragraph structure

4. For links pointing to English docs paths, update them to Japanese paths:
Copy link
Contributor

Choose a reason for hiding this comment

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

[P2] Prompt has conflicting instructions about URLs/paths vs internal link rewriting

The prose prompt says “Do NOT translate URLs and file paths” but also asks the model to rewrite internal docs paths (e.g. /cli/.../jp/cli/...). This conflict can produce inconsistent link handling across chunks; it’s more reliable to keep the prompt strict (“never change URLs”) and implement any required internal-link rewriting deterministically in code.

- **Without `group_by`**: Returns one row per day with nested breakdowns (e.g., `by_model`, `by_tool`, `daily_active_users_by_client`). Use this when you want all dimensions in a single response.
- **Without `group_by`**: Returns one row per day with nested breakdowns (e.g., `by_tool`, `daily_active_users_by_client`). Use this when you want all dimensions in a single response.

- **With `group_by`**: Flattens one of those nested arrays into separate rows. Each row has a `group_key` field identifying the dimension value. Use this when piping data into tools that expect flat rows (spreadsheets, BI tools, time-series databases).
Copy link
Contributor

Choose a reason for hiding this comment

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

[P2] group_by behavior description contradicts the /activity example

The doc says group_by “Flattens one of those nested arrays,” but immediately below notes /activity returns daily_active_users_by_client as an object that can also be grouped into rows. Reword to “nested breakdown field (array or object map)” (or similar) to avoid misleading consumers about the response shape.

Copy link
Contributor

@factory-droid factory-droid bot left a comment

Choose a reason for hiding this comment

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

Docs changes look straightforward, but the translation script change increases the risk of corrupting MDX since only fenced code blocks are preserved and everything else relies on model compliance. There’s also a small inconsistency in the Analytics API group_by description vs the /activity example that’s worth correcting.

@francesca-factory francesca-factory merged commit 4b0189c into main Mar 25, 2026
10 checks passed
@francesca-factory francesca-factory deleted the docs/remove-byok-billing-section branch March 25, 2026 21:19
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