assistant-ui icon indicating copy to clipboard operation
assistant-ui copied to clipboard

added aimlapi as provider

Open OctavianTheI opened this issue 8 months ago • 6 comments

Sup! I'm from the integration team of AI/ML API We'd like to join your amazing app as one of the providers. We got 200+ models, including stuff by Openai, Qwen models, Llama's etc - and with no region lock, which is a pretty good benefit for some folks. Anyways - please check my PR, and let me know if anything needs to be adjusted :)


[!IMPORTANT] Added AI/ML API as a new provider, updating documentation and components to support its integration.

  • Provider Addition:
    • Added AI/ML API as a new provider in ModelPicker.tsx with model Llama 3.3 70B Instruct Turbo.
    • Updated README.md and packages/react/README.md to include AI/ML API in the list of supported providers.
  • Documentation Updates:
    • Updated getting-started.mdx to include installation and setup instructions for AI/ML API.
    • Modified rsc.mdx, use-chat-hook.mdx, and use-chat.mdx to list AI/ML API as a supported integration.
  • Environment Setup:
    • Added AI/ML API environment variable setup in getting-started.mdx.

This description was created by Ellipsis for 387e35e0d517ac88acc57f2c2cd961c338a3e9c1. It will automatically update as commits are pushed.

OctavianTheI avatar Mar 27 '25 19:03 OctavianTheI

@OctavianTheI is attempting to deploy a commit to the assistant-ui Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Mar 27 '25 19:03 vercel[bot]

LGTM :+1:

📝 Documentation updates detected! You can review documentation updates here

promptless[bot] avatar Mar 27 '25 19:03 promptless[bot]

Walkthrough

The update incorporates the "AI/ML API" integration into the assistant-ui library. Across documentation and code components, references to supported model providers have been revised to include this new API alongside existing services. In the ModelPicker component, a new model entry, "Llama 3.3 70B Instruct Turbo," is added with its corresponding icon. The changes extend to the getting-started documentation, where terminal commands, API endpoint implementations, and environment variable setups now account for the "AI/ML API" provider. Additionally, various sections in the runtime and hook documentation have been updated to reflect the expanded list of integrations. No modifications were made to the declarations of exported or public entities.


📜 Recent review details

Configuration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Lite

📥 Commits

Reviewing files that changed from the base of the PR and between 387e35e0d517ac88acc57f2c2cd961c338a3e9c1 and fbe168a8e8e88d5709c9f62bd54c7a87da1f855a.

📒 Files selected for processing (1)
  • apps/docs/content/docs/getting-started.mdx (4 hunks)
🔇 Additional comments (5)
apps/docs/content/docs/getting-started.mdx (5)

73-73: Provider Tabs Definition: Provider Name Quoting

The Tabs component now correctly lists "AI/ML API" (properly wrapped in quotes) alongside the other providers. This addresses previous concerns about unquoted strings in the provider list.


119-121: Installation Command Consistency Check

The terminal installation command for the AI/ML API provider appears to use the same package as the OpenAI integration (@ai-sdk/openai). Please confirm that this is intentional and that the AI/ML API service indeed uses the same SDK module. If a different package should be used, update this command accordingly.


315-334: New API Endpoint Integration for AI/ML API

This new code block correctly sets up an API endpoint for the AI/ML API provider. The configuration (using createOpenAI with a custom baseURL and the new environment variable AIMLAPI_API_KEY) looks well integrated.

  • Please verify that the baseURL (https://api.aimlapi.com/v1) and the model identifier (accounts/aimlapi/models/meta-llama/Llama-3.3-70B-Instruct-Turbo) are correct.
  • Also, confirm that using the OpenAI SDK (@ai-sdk/openai) for this provider is the expected design.

340-342: Environment Variables Tab - Provider List Consistency

The Tabs component used to list environment variables now includes "AI/ML API", which is consistent with the installation and API endpoint sections. This ensures that the new provider is clearly visible throughout the documentation.


389-391: New Environment Variable for AI/ML API

The new code block defining the AIMLAPI_API_KEY for the AI/ML API provider is clear and correctly formatted. Ensure that documentation or setup instructions elsewhere in the project remind users to secure this key properly.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

coderabbitai[bot] avatar Mar 27 '25 19:03 coderabbitai[bot]

Pull request summary

  • Added support for a new AI/ML API provider in the documentation and codebase.
  • Updated the README to include the new AI/ML API in the list of supported model providers.
  • Introduced a new SVG asset for the AI/ML API provider.
  • Modified the ModelPicker component to include the new AI/ML API option.
  • Enhanced the installation instructions to include the new AI/ML API SDK.
  • Updated the API endpoint documentation to demonstrate how to use the new AI/ML API.
  • Added environment variable configuration for the new AI/ML API key.
  • Revised multiple documentation files to reflect the inclusion of the AI/ML API in various integrations.
  • Ensured that the new provider is integrated into existing components without breaking functionality.

trag-bot[bot] avatar Mar 31 '25 08:03 trag-bot[bot]

hi, guys! Could you give an approval for the workflow here? Implemented the requested changes a while ago, should be fine now

OctavianTheI avatar Apr 08 '25 14:04 OctavianTheI

This is out of scope for our project for now. Closing.

Yonom avatar Nov 17 '25 19:11 Yonom