chainlit 1.0.503__tar.gz → 1.0.504__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of chainlit might be problematic. Click here for more details.
- {chainlit-1.0.503 → chainlit-1.0.504}/PKG-INFO +2 -2
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/data/__init__.py +1 -1
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/emitter.py +3 -3
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/server.py +6 -4
- {chainlit-1.0.503 → chainlit-1.0.504}/pyproject.toml +2 -2
- {chainlit-1.0.503 → chainlit-1.0.504}/README.md +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/__init__.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/__main__.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/action.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/auth.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/cache.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/chat_settings.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/cli/__init__.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/cli/utils.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/config.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/context.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/copilot/dist/assets/logo_dark-2a3cf740.svg +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/copilot/dist/assets/logo_light-b078e7bc.svg +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/copilot/dist/index.js +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/data/acl.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/data/sql_alchemy.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/data/storage_clients.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/element.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/frontend/dist/assets/index-a8e1b559.js +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/frontend/dist/assets/index-d088547c.css +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/frontend/dist/assets/logo_dark-2a3cf740.svg +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/frontend/dist/assets/logo_light-b078e7bc.svg +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/frontend/dist/assets/react-plotly-b225b63c.js +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/frontend/dist/favicon.svg +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/frontend/dist/index.html +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/haystack/__init__.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/haystack/callbacks.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/hello.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/input_widget.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/langchain/__init__.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/langchain/callbacks.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/langflow/__init__.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/llama_index/__init__.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/llama_index/callbacks.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/logger.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/markdown.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/message.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/oauth_providers.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/openai/__init__.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/playground/__init__.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/playground/config.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/playground/provider.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/playground/providers/__init__.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/playground/providers/anthropic.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/playground/providers/huggingface.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/playground/providers/langchain.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/playground/providers/openai.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/playground/providers/vertexai.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/py.typed +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/secret.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/session.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/socket.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/step.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/sync.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/telemetry.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/translations/en-US.json +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/translations.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/types.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/user.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/user_session.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/utils.py +0 -0
- {chainlit-1.0.503 → chainlit-1.0.504}/chainlit/version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: chainlit
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.504
|
|
4
4
|
Summary: Build Conversational AI.
|
|
5
5
|
Home-page: https://github.com/Chainlit/chainlit
|
|
6
6
|
License: Apache-2.0 license
|
|
@@ -22,7 +22,7 @@ Requires-Dist: fastapi-socketio (>=0.0.10,<0.0.11)
|
|
|
22
22
|
Requires-Dist: filetype (>=1.2.0,<2.0.0)
|
|
23
23
|
Requires-Dist: httpx (>=0.23.0)
|
|
24
24
|
Requires-Dist: lazify (>=0.4.0,<0.5.0)
|
|
25
|
-
Requires-Dist: literalai (==0.0.
|
|
25
|
+
Requires-Dist: literalai (==0.0.504)
|
|
26
26
|
Requires-Dist: nest-asyncio (>=1.5.6,<2.0.0)
|
|
27
27
|
Requires-Dist: packaging (>=23.1,<24.0)
|
|
28
28
|
Requires-Dist: pydantic (>=1,<3)
|
|
@@ -477,7 +477,7 @@ class BaseStorageClient(Protocol):
|
|
|
477
477
|
|
|
478
478
|
if api_key := os.environ.get("LITERAL_API_KEY"):
|
|
479
479
|
# support legacy LITERAL_SERVER variable as fallback
|
|
480
|
-
server = os.environ.get("LITERAL_API_URL"
|
|
480
|
+
server = os.environ.get("LITERAL_API_URL") or os.environ.get("LITERAL_SERVER")
|
|
481
481
|
_data_layer = ChainlitDataLayer(api_key=api_key, server=server)
|
|
482
482
|
|
|
483
483
|
|
|
@@ -178,15 +178,15 @@ class ChainlitEmitter(BaseChainlitEmitter):
|
|
|
178
178
|
tags = (
|
|
179
179
|
[self.session.chat_profile] if self.session.chat_profile else None
|
|
180
180
|
)
|
|
181
|
-
|
|
181
|
+
asyncio.create_task(data_layer.update_thread(
|
|
182
182
|
thread_id=self.session.thread_id,
|
|
183
183
|
name=interaction,
|
|
184
184
|
user_id=user_id,
|
|
185
185
|
tags=tags,
|
|
186
|
-
)
|
|
186
|
+
))
|
|
187
187
|
except Exception as e:
|
|
188
188
|
logger.error(f"Error updating thread: {e}")
|
|
189
|
-
|
|
189
|
+
asyncio.create_task(self.session.flush_method_queue())
|
|
190
190
|
|
|
191
191
|
async def init_thread(self, interaction: str):
|
|
192
192
|
await self.flush_thread_queues(interaction)
|
|
@@ -597,7 +597,6 @@ async def get_user_threads(
|
|
|
597
597
|
current_user: Annotated[Union[User, PersistedUser], Depends(get_current_user)],
|
|
598
598
|
):
|
|
599
599
|
"""Get the threads page by page."""
|
|
600
|
-
# Only show the current user threads
|
|
601
600
|
|
|
602
601
|
data_layer = get_data_layer()
|
|
603
602
|
|
|
@@ -605,9 +604,12 @@ async def get_user_threads(
|
|
|
605
604
|
raise HTTPException(status_code=400, detail="Data persistence is not enabled")
|
|
606
605
|
|
|
607
606
|
if not isinstance(current_user, PersistedUser):
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
607
|
+
persisted_user = await data_layer.get_user(identifier=current_user.identifier)
|
|
608
|
+
if not persisted_user:
|
|
609
|
+
raise HTTPException(status_code=404, detail="User not found")
|
|
610
|
+
payload.filter.userId = persisted_user.id
|
|
611
|
+
else:
|
|
612
|
+
payload.filter.userId = current_user.id
|
|
611
613
|
|
|
612
614
|
res = await data_layer.list_threads(payload.pagination, payload.filter)
|
|
613
615
|
return JSONResponse(content=res.to_dict())
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "chainlit"
|
|
3
|
-
version = "1.0.
|
|
3
|
+
version = "1.0.504"
|
|
4
4
|
keywords = ['LLM', 'Agents', 'gen ai', 'chat ui', 'chatbot ui', 'openai', 'copilot', 'langchain', 'conversational ai']
|
|
5
5
|
description = "Build Conversational AI."
|
|
6
6
|
authors = ["Chainlit"]
|
|
@@ -23,7 +23,7 @@ chainlit = 'chainlit.cli:cli'
|
|
|
23
23
|
[tool.poetry.dependencies]
|
|
24
24
|
python = ">=3.8.1,<4.0.0"
|
|
25
25
|
httpx = ">=0.23.0"
|
|
26
|
-
literalai = "0.0.
|
|
26
|
+
literalai = "0.0.504"
|
|
27
27
|
dataclasses_json = "^0.5.7"
|
|
28
28
|
fastapi = "^0.110.1"
|
|
29
29
|
starlette = "^0.37.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{chainlit-1.0.503 → chainlit-1.0.504}/chainlit/frontend/dist/assets/react-plotly-b225b63c.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|