Skip to content

Commit

Permalink
prepare release (#657)
Browse files Browse the repository at this point in the history
* prepare release

* bump literalai version
  • Loading branch information
willydouhard authored Jan 10, 2024
1 parent a63501f commit d76a35e
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,23 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

Nothing is unreleased!

## [1.0.100] - 2023-01-10

### Added

- `on_logout` hook allowing to clear cookies when a user logs out

### Changed

- Chainlit apps won't crash anymore if the data layer is not reachable

### Fixed

- File upload now works when switching chat profiles
- Avatar with an image no longer have a background color
- If `hide_cot` is set to `true`, the UI will never get the intermediary steps (but they will still be persisted)
- Fixed a bug preventing to open past chats

## [1.0.0] - 2023-01-08

### Added
Expand Down
4 changes: 2 additions & 2 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "chainlit"
version = "1.0.0"
version = "1.0.100"
keywords = ['LLM', 'Agents', 'gen ai', 'chat ui', 'chatbot ui', 'langchain']
description = "A faster way to build chatbot UIs."
authors = ["Chainlit"]
Expand All @@ -21,7 +21,7 @@ chainlit = 'chainlit.cli:cli'
[tool.poetry.dependencies]
python = ">=3.8.1,<4.0.0"
httpx = ">=0.23.0,<0.25.0"
literalai = "0.0.1"
literalai = "0.0.102"
dataclasses_json = "^0.5.7"
uvicorn = "^0.23.2"
fastapi = "^0.100"
Expand Down
8 changes: 7 additions & 1 deletion cypress/e2e/tasklist/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async def on_message():
@cl.on_chat_start
async def main():
global task_list
await cl.sleep(0.5)
await cl.sleep(1)
task_list = cl.TaskList()
task_list.status = "Running..."
for i in range(17):
Expand All @@ -45,14 +45,20 @@ async def main():
await task_list.add_task(task)
await task_list.send()

await cl.sleep(1)

task_list.tasks[0].status = cl.TaskStatus.RUNNING
await task_list.send()

await cl.sleep(1)

for i in range(9):
task_list.tasks[i].status = cl.TaskStatus.DONE
task_list.tasks[i + 1].status = cl.TaskStatus.RUNNING
await cl.sleep(0.2)
await task_list.send()

await cl.sleep(1)

task_list.tasks[9].status = cl.TaskStatus.FAILED
await task_list.send()
Binary file modified images/quick-start.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion libs/react-components/src/elements/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const AvatarElement = ({ element, author, bgColor }: Props) => {
if (element?.url) {
avatar = <Avatar sx={sx} src={element?.url} />;
} else {
avatar = <Avatar sx={sx}>{author[0]}</Avatar>;
avatar = <Avatar sx={sx}>{author[0]?.toUpperCase()}</Avatar>;
}
return <span className={`message-avatar`}>{avatar}</span>;
};
Expand Down

0 comments on commit d76a35e

Please sign in to comment.