Skip to content

docs(providers): add Adaptive Provider documentation #7312

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

botirk38
Copy link

@botirk38 botirk38 commented Jul 15, 2025

Background

Adaptive Landing Page: https://www.llmadaptive.uk/

The AI SDK was missing comprehensive documentation for the Adaptive provider, a key component designed for intelligent model selection and routing across multiple AI services to achieve optimal performance and cost efficiency.

Summary

Added comprehensive documentation for the Adaptive provider (@adaptive-llm/adaptive) including:

  • Installation instructions and setup
  • Provider instance configuration with custom options (baseURL, apiKey, headers, fetch, defaultProvider)
  • Coverage of provider options, including costBias for cost optimization.
  • Usage examples with generateText, streamText, generateObject, and streamObject, demonstrating how the Adaptive provider handles model choice inherently.
  • Explanation of model capabilities and current limitations (no text embedding support).

Verification

  • Verified all code examples use correct TypeScript syntax.
  • Confirmed that examples now correctly show the Adaptive provider's intelligent model selection rather than explicit model names.
  • Tested installation commands across package managers.
  • Validated configuration options and types.

Tasks

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • Formatting issues have been fixed (run pnpm prettier-fix in the project root)

Future Work

  • Add text embedding support documentation when available.
  • Include performance benchmarking examples for costBias values to demonstrate the impact of intelligent routing.
  • Add troubleshooting section for common configuration issues.

Related Issues

  • Addresses community requests for Adaptive provider documentation.
  • Supports AI SDK provider ecosystem expansion by highlighting advanced routing capabilities.

botirk38 added 2 commits July 15, 2025 15:50
This commit introduces comprehensive documentation for the Adaptive Provider.
It covers installation, provider instance configuration, and language model
usage with automatic model selection and cost bias options. The documentation
explains how to set up the provider and leverage its intelligent routing
capabilities for optimal performance and cost efficiency.
…res for consistency

style(docs): reformat Adaptive provider option descriptions for improved readability
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