Skip to content

docs: fix discrepancies between docs and source code#110

Open
mintlify[bot] wants to merge 1 commit intomainfrom
mintlify/docs-accuracy-1776644155
Open

docs: fix discrepancies between docs and source code#110
mintlify[bot] wants to merge 1 commit intomainfrom
mintlify/docs-accuracy-1776644155

Conversation

@mintlify
Copy link
Copy Markdown
Contributor

@mintlify mintlify Bot commented Apr 20, 2026

Summary

Compared documentation against the actual source code implementation and fixed several discrepancies:

  • Fixed incorrect error name property in api/core/errors.mdx — the ValidationError properties section incorrectly stated the name is always 'CoreAIError'
  • Fixed wrong OpenTelemetry attribute namegen_ai.system corrected to gen_ai.provider.name, and added missing span attributes (gen_ai.operation.name, gen_ai.output.type, gen_ai.request.schema_name, cache token attrs, core_ai.metadata.*, core_ai.function_id) plus span name patterns
  • Added missing metadata parameter to BaseGenerateOptions, EmbedOptions, and ImageGenerateOptions type definitions and all six API reference pages (generate, stream, generateObject, streamObject, embed, generateImage) plus concepts/configuration.mdx
  • Documented Langfuse usageDetails key names — replaced vague description with exact keys: input, output, cache_read_input, cache_creation_input, reasoning_output
  • Added Anthropic adaptive thinking effort mapping table showing how ReasoningEffort values map to Anthropic effort levels
  • Documented both valid cache TTL values ('5m' and '1h') for Anthropic prompt caching

- Fix incorrect error name property in errors.mdx (said 'CoreAIError' for all classes)
- Fix wrong OTel attribute name (gen_ai.system -> gen_ai.provider.name) and add missing span attributes
- Add missing metadata parameter to all API reference pages and type definitions
- Document Langfuse usage detail key names
- Add Anthropic adaptive thinking effort mapping table
- Document both valid cache TTL values ('5m' and '1h') for Anthropic

Generated-By: mintlify-agent
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.

0 participants