Skip to content

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

Merged
danny-avila merged 10 commits into
mainfrom
feat/query-params-convo
Jan 5, 2025
Merged

🔗 feat: Convo Settings via URL Query Params & Mention Models#5184
danny-avila merged 10 commits into
mainfrom
feat/query-params-convo

Conversation

@danny-avila

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

Copy link
Copy Markdown
Owner

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
@danny-avila danny-avila deleted the feat/query-params-convo branch January 5, 2025 01:36
MichielMAnalytics pushed a commit to MichielMAnalytics/ProAI that referenced this pull request Jun 6, 2025
…vila#5184)

* feat: first pass, convo settings from query params

* feat: Enhance query parameter handling for assistants and agents endpoints

* feat: Update message formatting and localization for AI responses, bring awareness to mention command

* docs: Update translations README with detailed instructions for translation script usage and contribution guidelines

* chore: update localizations

* fix: missing agent_id assignment

* feat: add models as initial mention option

* feat: update query parameters schema to confine possible query params

* fix: normalize custom endpoints

* refactor: optimize custom endpoint type check
mcbuckeye pushed a commit to mcbuckeye/LibreChat that referenced this pull request Aug 27, 2025
…vila#5184)

* feat: first pass, convo settings from query params

* feat: Enhance query parameter handling for assistants and agents endpoints

* feat: Update message formatting and localization for AI responses, bring awareness to mention command

* docs: Update translations README with detailed instructions for translation script usage and contribution guidelines

* chore: update localizations

* fix: missing agent_id assignment

* feat: add models as initial mention option

* feat: update query parameters schema to confine possible query params

* fix: normalize custom endpoints

* refactor: optimize custom endpoint type check
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