Skip to content

Commit

Permalink
Release/1.1.0 (Chainlit#989)
Browse files Browse the repository at this point in the history
* bump version

* fix dependabot security alert
  • Loading branch information
willydouhard authored May 13, 2024
1 parent e5d2573 commit 357f2cd
Show file tree
Hide file tree
Showing 10 changed files with 14,248 additions and 12,403 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,28 @@ Nothing unreleased!

### Added

- You can know serve your Chainlit app through Slack
- You can know serve your Chainlit app through Discord
- You can know serve your Chainlit app as a Slack bot
- You can know serve your Chainlit app as a Discord bot
- `cl.on_audio_chunk` decorator to process incoming the user incoming audio stream
- `cl.on_audio_end` decorator to react to the end of the user audio stream
- The `cl.Audio` element now has an `auto_play` property
- `layout` theme config, wide or default
- `http_referer` is now available in `cl.user_session`

### Changed

- The UI has been revamped, especially the navigation
- The arrow up button has been removed from the input bar, however pressing the arrow up key still opens the last inputs menu
- The user session will no longer be persisted as metadata if > 1mb
- **[breaking]** the `send()` method on `cl.Message` now returns the message instead of the message id
- **[breaking]** The `multi_modal` feature has been renamed `spontaneous_file_upload` in the config
- Element display property now defaults to `inline` instead of `side`
- The SQL Alchemy data layer logging has been improved

### Fixed

- Fixed a bug disconnecting the user when loading the chat history
- Elements based on an URL should now have a mime type
- Stopping a task should now work better (using asyncio task.cancel)

## [1.0.506] - 2024-04-30
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Chainlit is an open-source async Python framework which allows developers to bui

- ✅ ChatGPT-like application
- ✅ Embedded Chatbot & Software Copilot
- ✅ Slack & Discord
- ✅ Custom frontend (build your own agentic experience)
- ✅ API Endpoint

Expand Down Expand Up @@ -72,6 +73,7 @@ $ chainlit run demo.py -w
```

<img src="/images/quick-start.png" alt="Quick Start"></img>

## 🎉 Key Features and Integrations

Full documentation is available [here](https://docs.chainlit.io). Key features:
Expand Down
5 changes: 4 additions & 1 deletion backend/chainlit/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from typing import Any, ClassVar, List, Literal, Optional, TypedDict, TypeVar, Union

import filetype
import mimetypes
from chainlit.context import context
from chainlit.data import get_data_layer
from chainlit.logger import logger
Expand Down Expand Up @@ -165,7 +166,9 @@ async def send(self, for_id: str):
if self.type in mime_types
else filetype.guess_mime(self.path or self.content)
)

if not self.mime and self.url:
self.mime = mimetypes.guess_type(self.url)[0]

await self._create()

if not self.url and not self.chainlit_key:
Expand Down
4 changes: 1 addition & 3 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ chainlit = 'chainlit.cli:cli'
[tool.poetry.dependencies]
python = ">=3.8.1,<4.0.0"
httpx = ">=0.23.0"
literalai = "0.0.600"
literalai = "0.0.601"
dataclasses_json = "^0.5.7"
fastapi = "^0.110.1"
starlette = "^0.37.2"
Expand All @@ -36,7 +36,6 @@ nest-asyncio = "^1.5.6"
click = "^8.1.3"
tomli = "^2.0.1"
pydantic = ">=1,<3"
python-graphql-client = "^0.4.3"
python-dotenv = "^1.0.0"
uptrace = "^1.22.0"
watchfiles="^0.20.0"
Expand Down Expand Up @@ -82,7 +81,6 @@ module = [
"matplotlib.*", # remove when 3.8.0 is out, it should export types
"plotly.*",
"nest_asyncio",
"python_graphql_client",
"socketio.*",
"uptrace",
"syncer",
Expand Down
Loading

0 comments on commit 357f2cd

Please sign in to comment.