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

🔗 feat: Convo Settings via URL Query Params & Mention Models #5184

Merged
merged 10 commits into from
Jan 5, 2025

Conversation

danny-avila
Copy link
Owner

@danny-avila danny-avila commented Jan 4, 2025

Summary

I added support for conversation settings via URL query parameters, as well as the ability to mention model names directly with the mention command. Previously, the only way to access model names was to select an endpoint first.

  • Modified the useEffect hook in useQueryParams with parseQueryValue, processValidSettings, and newQueryConvo functions to parse and validate query parameters against tQueryParamsSchema to process query parameters and set conversation presets based on valid settings.
  • Ensured that when assistant_id or agent_id is provided in the URL, the conversation loads with the correct assistant or agent, and the endpoint is set accordingly.
  • Also updated localizations and edited default placeholder to bring awareness to mention command to switch Conversation Settings
  • Added the ability to mention model names directly with the mention command
  • Fixed an issue where agent_id assignment via the mention command was not taking effect.

Closes #1343

Relevant docs: LibreChat-AI/librechat.ai#193

Change Type

  • New feature (non-breaking change which adds functionality)

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • My changes do not introduce new warnings
  • Local unit tests pass with my changes

@danny-avila danny-avila changed the title ✨ feat: Conversation Settings via URL Query Parameters ✨ feat: Convo Settings via URL Query Params & Mention Models Jan 4, 2025
@danny-avila danny-avila changed the title ✨ feat: Convo Settings via URL Query Params & Mention Models 🔗 feat: Convo Settings via URL Query Params & Mention Models Jan 5, 2025
@danny-avila danny-avila merged commit 7987e04 into main Jan 5, 2025
2 checks passed
@danny-avila danny-avila deleted the feat/query-params-convo branch January 5, 2025 01:36
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.

Enhancement: create new chats using query parameters
1 participant