Skip to content
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

[Enhancement]: Allow selecting Model Spec by URL Query Param #6050

Open
1 task done
leejss opened this issue Feb 26, 2025 · 2 comments
Open
1 task done

[Enhancement]: Allow selecting Model Spec by URL Query Param #6050

leejss opened this issue Feb 26, 2025 · 2 comments
Labels
✨ enhancement New feature or request

Comments

@leejss
Copy link

leejss commented Feb 26, 2025

What features would you like to see added?

When accessing a page with an assistant_id, for example, via http://example.com/c/new?assistant_id=123456, it seems that the model selection section is not displaying the name defined in modelSpecs but is instead being set to null or undefined.

localize('com_ui_none_selected') is being displayed. It appears that the spec and iconURL in the conversation object are also being set to undefined.

Please revise it so that when accessing with the assistant_id query parameter, the name defined in modelSpecs is displayed.

More details

The modelSpecs I defined are in the following format.

modelSpecs:
  enforce: false
  prioritize: false
  list:
    - name: "Dall-E 3"
      label: "Dall-E 3"
      description: "Image Generator"
      iconURL: "fake_image.png"
      preset:
        endpoint: "assistants"
        assistant_id: "1234567"
        model: "gpt-4o"
    - name: "ServiceDesk"
      label: "Service Desk"
      description: "I am service desk"
      iconURL: "fake_icon.png"
      preset:
        name: "ServiceDesk"
        endpoint: "assistants"
        assistant_id: "12345678"
        model: "gpt-4o"

Which components are impacted by your request?

UI

Pictures

Image

Code of Conduct

  • I agree to follow this project's Code of Conduct
@leejss leejss added the ✨ enhancement New feature or request label Feb 26, 2025
@danny-avila danny-avila changed the title [Enhancement]: Setting proper conversation when accessing through assistant_id parameter [Enhancement]: Allow selecting Model Spec by URL Query Param Feb 26, 2025
@danny-avila
Copy link
Owner

Hi, thanks for your suggestion. The assistant_id would not match your model spec because the system wouldn't know if it's associated to a spec or not.

I renamed the title to more accurately target the issue, and this would be good to have.

reference: https://www.librechat.ai/docs/features/url_query

@leejss
Copy link
Author

leejss commented Feb 27, 2025

Thank you for your comment and I have one more question.

I have multiple Open AI assistants in Librechat. I want to directly select a specific assistant through a URL query parameter, but the issue I faced was that when I selected one using the assistant_id query parameter, the model name and icon didn’t display properly. Is this problem inevitable? Or if there’s a way to handle multiple assistants, please let me know.

@danny-avila danny-avila marked this as a duplicate of #6179 Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants