Skip to content

Allow AI model switching based on User Tier #1151

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

Merged
merged 3 commits into from
Apr 19, 2025

Conversation

debanjum
Copy link
Member

@debanjum debanjum commented Apr 5, 2025

Overview

Enable free tier users to chat with any AI model made available on free tier
of production deployments like Khoj cloud.

Previously model switching was completely disabled for users on free tier.

Details

  • Track price tier of each Chat, Speech, Image, Voice AI model in DB
  • Update API to allow free tier users to switch between free models
  • Update web app to allow model switching on agent creation, settings
    chat page (via right side pane), even for free tier users.

@debanjum debanjum changed the title # Allow Model switching based on User Tier Allow Model switching based on User Tier Apr 5, 2025
@debanjum debanjum requested a review from sabaimran April 5, 2025 05:55
Copy link
Member

@sabaimran sabaimran left a comment

Choose a reason for hiding this comment

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

nice! will be awesome to extend model switching to unsubbed users.

@debanjum debanjum force-pushed the allow-model-switching-based-on-price-tier branch 3 times, most recently from b664488 to 273065a Compare April 19, 2025 03:33
Enables users on free plan to choose AI models marked for free tier
@debanjum debanjum force-pushed the allow-model-switching-based-on-price-tier branch from 273065a to e1df819 Compare April 19, 2025 04:21
- Update API to allow free tier users to switch between free models
- Update web app to allow model switching on agent creation, settings
  chat page (via right side pane), even for free tier users.

Previously the model switching APIs and UX fields on web app were
completely disabled for free tier users
@debanjum debanjum force-pushed the allow-model-switching-based-on-price-tier branch 2 times, most recently from c598038 to e048737 Compare April 19, 2025 12:24
@debanjum debanjum force-pushed the allow-model-switching-based-on-price-tier branch from e048737 to ab29ffd Compare April 19, 2025 12:33
@debanjum debanjum added the upgrade New feature or request label Apr 19, 2025
@debanjum debanjum merged commit 5441793 into master Apr 19, 2025
10 checks passed
@debanjum debanjum deleted the allow-model-switching-based-on-price-tier branch April 19, 2025 12:44
@debanjum debanjum changed the title Allow Model switching based on User Tier Allow AI model switching based on User Tier Apr 19, 2025
debanjum added a commit that referenced this pull request May 2, 2025
Recent changes enabled free tier users to switch free tier chat models
per conversation or the default.

This change enables free tier users to generate responses with their
conversation specific chat model.

Related: #725, #1151
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upgrade New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants