Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion daras_ai_v2/api_examples_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def bot_api_example_generator(integration_id: str):
"Content-Type": "application/json",
},
body: JSON.stringify({
// your integration's ID as shown in the Gooey.AI Integrations tab
// your integration's ID as shown in the Gooey.AI Deploy tab
"integration_id": "%(integration_id)s",
// the input text for the bot
"input_prompt": "Hello, world!",
Expand Down
2 changes: 1 addition & 1 deletion daras_ai_v2/bots.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

PAGE_NOT_CONNECTED_ERROR = (
"💔 Looks like you haven't connected this page to a gooey.ai workflow. "
"Please go to the Integrations Tab and connect this page."
"Please go to the Deploy Tab and connect this page."
)
RESET_KEYWORDS = {"reset", "new", "restart", "clear"}
RESET_MSG = "♻️ Sure! Let's start fresh. How can I help you?"
Expand Down
2 changes: 1 addition & 1 deletion daras_ai_v2/breadcrumbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def get_title_breadcrumbs(
)
case _ if is_run:
if tab and tab.label:
prefix = tab.label
prefix = "Deployments" if tab == RecipeTabs.integrations else tab.label
elif is_api_call:
prefix = "API Run"
else:
Expand Down
10 changes: 5 additions & 5 deletions recipes/VideoBots.py
Original file line number Diff line number Diff line change
Expand Up @@ -1613,7 +1613,7 @@ def render_integrations_tab(self):
tab=RecipeTabs.integrations, example_id=pr.published_run_id
)
gui.caption(
f"Note: You seem to have unpublished changes. Integrations use the [last saved version]({last_saved_url}), not the currently visible edits.",
f"Note: You seem to have unpublished changes. Deployments use the [last saved version]({last_saved_url}), not the currently visible edits.",
className="text-center text-muted",
)

Expand Down Expand Up @@ -1642,12 +1642,12 @@ def render_integrations_tab(self):
# this gets triggered on the /add route
if gui.session_state.pop("--add-integration", None):
self.render_integrations_add(
label="#### Add a New Integration to your Copilot",
label="#### Deploy to a New Channel",
run_title=run_title,
pr=pr,
)
with gui.center():
if gui.button("Return to Test & Configure"):
if gui.button("Return to Configure"):
cancel_url = self.current_app_url(RecipeTabs.integrations)
raise gui.RedirectException(cancel_url)
return
Expand Down Expand Up @@ -2072,11 +2072,11 @@ def render_integrations_settings(

col1, col2 = gui.columns(2, style={"alignItems": "center"})
with col1:
gui.write("###### Add Integration")
gui.write("###### Add Deployment")
gui.caption(f"Add another connection for {run_title}.")
with col2:
gui.anchor(
f'<img align="left" width="24" height="24" src="{icons.integrations_img}"> &nbsp; Add Integration',
f'<img align="left" width="24" height="24" src="{icons.integrations_img}"> &nbsp; Add Deployment',
str(furl(self.current_app_url(RecipeTabs.integrations)) / "add/"),
unsafe_allow_html=True,
)
Expand Down
6 changes: 3 additions & 3 deletions recipes/VideoBotsStats.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def render(self):
self.setup_sentry()

if not self.request.user or self.request.user.is_anonymous:
gui.write("**Please Login to view stats for your bot integrations**")
gui.write("**Please Login to view stats for your bot Deployments**")
return
if self.is_current_user_admin():
bi_qs = BotIntegration.objects.all().order_by("platform", "-created_at")
Expand All @@ -97,7 +97,7 @@ def render(self):

if not bi_qs.exists():
gui.write(
"**Please connect a bot to a platform to view stats for your bot integrations or login to an account with connected bot integrations**"
"**Please connect a bot to a platform to view stats for your bot deployments or login to an account with connected bot deployments**"
)
return

Expand Down Expand Up @@ -326,7 +326,7 @@ def show_title_breadcrumb_share(
className="text-muted",
)
gui.breadcrumb_item(
"Integrations",
"Deploy",
link_to=VideoBotsPage.app_url(
tab=RecipeTabs.integrations,
example_id=(
Expand Down
2 changes: 1 addition & 1 deletion routers/bots_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

class CreateStreamRequestBase(BaseModel):
integration_id: str = Field(
description="Your Integration ID as shown in the Copilot Integrations tab"
description="Your Integration ID as shown in the Copilot Deploy tab"
)

conversation_id: str | None = Field(
Expand Down
2 changes: 1 addition & 1 deletion routers/broadcast_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class BotBroadcastRequestModel(BaseModel):
None, description="Video URL to send to all users"
)
integration_id: str | None = Field(
description="The Bot's Integration ID as shown in the Copilot Integrations tab or as variables in a function call."
description="The Bot's Integration ID as shown in the Copilot Deploy tab or as variables in a function call."
)
buttons: list[ReplyButton] | None = Field(
None, description="Buttons to send to all users"
Expand Down
4 changes: 2 additions & 2 deletions routers/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,8 +905,8 @@ class RecipeTabs(TabData, Enum):
route=history_route,
)
integrations = TabData(
title=f'<img width="20" height="20" style="margin-right: 4px;margin-top: -3px" src="{icons.integrations_img}" alt="Facebook, Whatsapp, Slack, Instagram Icons"> Integrations',
label="Integrations",
title=f'<img width="20" height="20" style="margin-right: 4px;margin-top: -3px" src="{icons.integrations_img}" alt="Facebook, Whatsapp, Slack, Instagram Icons"> Deploy',
label="Deploy",
route=integrations_route,
)
saved = TabData(
Expand Down
Loading