Skip to content

Commit d4bcd3e

Browse files
committed
Enable bookmarking in templates
1 parent 4c6c6b3 commit d4bcd3e

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

shiny/templates/chat/llm-enterprise/aws-bedrock-anthropic/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
# Create and display empty chat
2828
chat = ui.Chat(id="chat")
2929
chat.ui()
30+
chat.enable_bookmarking(chat_client, store="url")
3031

3132

3233
# Define a callback to run when the user submits a message

shiny/templates/chat/llm-enterprise/azure-openai/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
messages=["Hello! How can I help you today?"],
3333
)
3434
chat.ui()
35+
chat.enable_bookmarking(chat_client, store="url")
3536

3637

3738
# Define a callback to run when the user submits a message

shiny/templates/chat/llms/anthropic/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
messages=["Hello! How can I help you today?"],
3333
)
3434
chat.ui()
35+
chat.enable_bookmarking(chat_client, store="url")
3536

3637

3738
# Generate a response when the user submits a message

shiny/templates/chat/llms/google/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
# Create and display empty chat
2929
chat = ui.Chat(id="chat")
3030
chat.ui()
31+
chat.enable_bookmarking(chat_client, store="url")
3132

3233

3334
# Generate a response when the user submits a message

shiny/templates/chat/llms/langchain/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
messages=["Hello! How can I help you today?"],
3434
)
3535
chat.ui()
36+
chat.enable_bookmarking(chat_client, store="url")
3637

3738

3839
# Define a callback to run when the user submits a message

shiny/templates/chat/llms/ollama/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
messages=["Hello! How can I help you today?"],
2525
)
2626
chat.ui()
27+
chat.enable_bookmarking(chat_client, store="url")
2728

2829

2930
# Generate a response when the user submits a message

shiny/templates/chat/llms/openai/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
messages=["Hello! How can I help you today?"],
3333
)
3434
chat.ui()
35+
chat.enable_bookmarking(chat_client, store="url")
3536

3637

3738
# Generate a response when the user submits a message

0 commit comments

Comments
 (0)