chainlit 0.1.102__tar.gz → 0.1.103__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-0.1.102 → chainlit-0.1.103}/PKG-INFO +1 -1
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/__init__.py +15 -0
- chainlit-0.1.102/chainlit/frontend/dist/assets/index-70c66596.js → chainlit-0.1.103/chainlit/frontend/dist/assets/index-2dad8c58.js +136 -136
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/frontend/dist/index.html +1 -1
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/sdk.py +34 -3
- {chainlit-0.1.102 → chainlit-0.1.103}/pyproject.toml +1 -1
- {chainlit-0.1.102 → chainlit-0.1.103}/README.md +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/__main__.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/cli/__init__.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/cli/auth.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/cli/deploy.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/cli/utils.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/client.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/config.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/frontend/dist/assets/index-bdffdaa0.css +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/frontend/dist/assets/logo_dark-bc7401f6.svg +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/frontend/dist/assets/logo_light-f19fc2ea.svg +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/frontend/dist/favicon.svg +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/hello.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/lc/__init__.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/lc/chainlit_handler.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/lc/monkey.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/lc/new_monkey.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/lc/old_monkey.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/lc/utils.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/logger.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/markdown.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/server.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/session.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/telemetry.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/types.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/user_session.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/version.py +0 -0
- {chainlit-0.1.102 → chainlit-0.1.103}/chainlit/watch.py +0 -0
|
@@ -107,6 +107,21 @@ def send_local_image(path: str, name: str, display: ElementDisplay = "side"):
|
|
|
107
107
|
sdk.send_local_image(path, name, display)
|
|
108
108
|
|
|
109
109
|
|
|
110
|
+
@trace
|
|
111
|
+
def send_image(url: str, name: str, display: ElementDisplay = "side"):
|
|
112
|
+
"""
|
|
113
|
+
Send an image to the chatbot UI.
|
|
114
|
+
Args:
|
|
115
|
+
url (str): The URL of the image.
|
|
116
|
+
name (str): The name of the image to be displayed in the UI.
|
|
117
|
+
display (ElementDisplay, optional): Determines how the image should be displayed in the UI.
|
|
118
|
+
Choices are "side" (default) or "inline" or "page".
|
|
119
|
+
"""
|
|
120
|
+
sdk = get_sdk()
|
|
121
|
+
if sdk:
|
|
122
|
+
sdk.send_image(url, name, display)
|
|
123
|
+
|
|
124
|
+
|
|
110
125
|
@trace
|
|
111
126
|
def send_message(
|
|
112
127
|
content: str,
|