Skip to content

Conversation

@jliberta
Copy link

@jliberta jliberta commented Mar 20, 2025

Fix chainlit pydantic dependency error, chainlit pdf mode parsing, enterprise deployment documentation update

Purpose

  • Chainlit chat app with v1.0.502 doesn't start locally, and the container replica crashes at start.
  • Pins the Pydantic dependency to 2.10.1 as required by this Chainlit version so the app can start.
  • Trying to change the pdf mode in the chat app with the command and value GPT-4-VISION or gpt-4-vision does not work.
  • Update pdf mode parser in the chat app so that it converts the command and values to lowercase.
  • Fix bug parsing topN command.

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[x] Documentation content changes
[ ] Other... Please describe:

How to Test

  • Run using the one-click deploy feature.
  • Test the app by running Chainlit locally.
  • Try to change the pdf mode in the chat application by typing GPT-4-VISION or gpt-4-vision.
  • Try to change the number of search results returned in the chat app.

What to Check

Verify that the following are valid

  • Chat application starts when deployed to ACA and locally.
  • The pdf mode changes.
  • The number of search results changes.

Other Information

If you don't want to pin a specific Pydantic version, update the Chainlit package to a working version such as latest and remove the Pydantic dependency in requirements.txt

@jliberta
Copy link
Author

@microsoft-github-policy-service agree

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.

1 participant