Skip to content

Comments

Add query param prefill for chat#2624

Merged
hayescode merged 17 commits intoChainlit:mainfrom
ADWasHere:feature/chat-query-param
Nov 8, 2025
Merged

Add query param prefill for chat#2624
hayescode merged 17 commits intoChainlit:mainfrom
ADWasHere:feature/chat-query-param

Conversation

@ADWasHere
Copy link
Contributor

@ADWasHere ADWasHere commented Nov 1, 2025

Now you can curl /?prompt=Hello%20World and Hello World will appear as a prefill in the chat-input
Issue: #2614

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. frontend Pertains to the frontend. labels Nov 1, 2025
@ADWasHere ADWasHere changed the title Add query param prefill for chat #2614 Add query param prefill for chat Nov 1, 2025
@hayescode
Copy link
Contributor

Thanks for the contribution @ADWasHere ! Would you mind adding a test for this?

feat: Add display_name field to ChatProfile

  描述:
  ## Summary
Add optional `display_name` field to `ChatProfile` to allow separate
internal identifiers and user-facing display names.

  ## Changes
- **Backend**: Added `display_name: Optional[str]` to ChatProfile
dataclass
  - **Frontend**: Updated UI to display `display_name || name`
  - **Types**: Added `display_name?` to TypeScript interface

  ## Benefits
  - Use technical IDs internally (e.g., `ad_designer`)
  - Display user-friendly names in UI (e.g., `广告设计师`)
  - Fully backward compatible (optional field)

  ## Example
  ```python
  ChatProfile(
      name="ad_designer",       # Internal ID
      display_name="广告设计师",  # UI display
      markdown_description="...",
      icon="..."
  )

---------

Co-authored-by: Claude <noreply@anthropic.com>
@ADWasHere
Copy link
Contributor Author

Thanks for the contribution @ADWasHere ! Would you mind adding a test for this?

Sure, I'll do it today or tomorrow.

asvishnyakov and others added 4 commits November 7, 2025 22:09
# Step Nesting
- Nested steps were rendering as child_step -> parent_step.input ->
parent_step.output. This is now more logical parent_step.input ->
child_step -> parent_step.output
- **Before**
- <img width="476" height="366" alt="image"
src="https://github.com/user-attachments/assets/60932c70-2cce-434e-b3b2-a0cb5e146769"
/>
- **After**
- <img width="844" height="366" alt="image"
src="https://github.com/user-attachments/assets/4234c9ff-4909-40fe-b8a4-c170e30bfa1a"
/>


# Task List
- The tasks in the TaskList couldn't be formatted with markdown or html
like the rest of the frontend so I added that back and improved the
styling a bit.
- <img width="366" height="94" alt="image"
src="https://github.com/user-attachments/assets/7ad561ce-d240-4bab-bb8f-9583f8f62e52"
/>
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Nov 7, 2025
@ADWasHere
Copy link
Contributor Author

@hayescode you can merge it now

@hayescode hayescode added this pull request to the merge queue Nov 8, 2025
Merged via the queue into Chainlit:main with commit efba99e Nov 8, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Pertains to the frontend. size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants