Skip to content

Commit 12ecad0

Browse files
committed
k
1 parent 8007b37 commit 12ecad0

File tree

11 files changed

+18
-18
lines changed

11 files changed

+18
-18
lines changed

backend/ee/onyx/onyxbot/slack/handlers/handle_standard_answers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from ee.onyx.db.standard_answer import fetch_standard_answer_categories_by_names
99
from ee.onyx.db.standard_answer import find_matching_standard_answers
1010
from onyx.configs.constants import MessageType
11-
from onyx.configs.onyxbot_configs import DANSWER_REACT_EMOJI
11+
from onyx.configs.onyxbot_configs import ONYX_BOT_REACT_EMOJI
1212
from onyx.db.chat import create_chat_session
1313
from onyx.db.chat import create_new_chat_message
1414
from onyx.db.chat import get_chat_messages_by_sessions
@@ -193,7 +193,7 @@ def _handle_standard_answers(
193193
db_session.commit()
194194

195195
update_emote_react(
196-
emoji=DANSWER_REACT_EMOJI,
196+
emoji=ONYX_BOT_REACT_EMOJI,
197197
channel=message_info.channel_to_respond,
198198
message_ts=message_info.msg_to_respond,
199199
remove=True,

backend/onyx/configs/onyxbot_configs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
"ONYX_BOT_DISABLE_DOCS_ONLY_ANSWER", ""
1414
).lower() not in ["false", ""]
1515
# When Onyx is considering a message, what emoji does it react with
16-
DANSWER_REACT_EMOJI = os.environ.get("DANSWER_REACT_EMOJI") or "eyes"
16+
ONYX_BOT_REACT_EMOJI = os.environ.get("ONYX_BOT_REACT_EMOJI") or "eyes"
1717
# When User needs more help, what should the emoji be
18-
DANSWER_FOLLOWUP_EMOJI = os.environ.get("DANSWER_FOLLOWUP_EMOJI") or "sos"
18+
ONYX_BOT_FOLLOWUP_EMOJI = os.environ.get("ONYX_BOT_FOLLOWUP_EMOJI") or "sos"
1919
# What kind of message should be shown when someone gives an AI answer feedback to OnyxBot
2020
# Defaults to Private if not provided or invalid
2121
# Private: Only visible to user clicking the feedback

backend/onyx/onyxbot/slack/handlers/handle_buttons.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from onyx.chat.process_message import remove_answer_citations
1313
from onyx.configs.constants import MessageType
1414
from onyx.configs.constants import SearchFeedbackType
15-
from onyx.configs.onyxbot_configs import DANSWER_FOLLOWUP_EMOJI
15+
from onyx.configs.onyxbot_configs import ONYX_BOT_FOLLOWUP_EMOJI
1616
from onyx.connectors.slack.utils import expert_info_from_slack_id
1717
from onyx.context.search.models import SavedSearchDoc
1818
from onyx.db.chat import get_chat_message
@@ -459,7 +459,7 @@ def handle_followup_button(
459459
thread_ts = req.payload["container"].get("thread_ts", None)
460460

461461
update_emote_react(
462-
emoji=DANSWER_FOLLOWUP_EMOJI,
462+
emoji=ONYX_BOT_FOLLOWUP_EMOJI,
463463
channel=channel_id,
464464
message_ts=thread_ts,
465465
remove=False,
@@ -544,7 +544,7 @@ def handle_followup_resolved_button(
544544
clicker_name = get_clicker_name(req, client)
545545

546546
update_emote_react(
547-
emoji=DANSWER_FOLLOWUP_EMOJI,
547+
emoji=ONYX_BOT_FOLLOWUP_EMOJI,
548548
channel=channel_id,
549549
message_ts=thread_ts,
550550
remove=True,

backend/onyx/onyxbot/slack/handlers/handle_message.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from slack_sdk import WebClient
44
from slack_sdk.errors import SlackApiError
55

6-
from onyx.configs.onyxbot_configs import DANSWER_REACT_EMOJI
76
from onyx.configs.onyxbot_configs import ONYX_BOT_FEEDBACK_REMINDER
7+
from onyx.configs.onyxbot_configs import ONYX_BOT_REACT_EMOJI
88
from onyx.db.engine.sql_engine import get_session_with_current_tenant
99
from onyx.db.models import SlackChannelConfig
1010
from onyx.db.users import add_slack_user_if_not_exists
@@ -39,7 +39,7 @@ def send_msg_ack_to_user(details: SlackMessageInfo, client: WebClient) -> None:
3939
return
4040

4141
update_emote_react(
42-
emoji=DANSWER_REACT_EMOJI,
42+
emoji=ONYX_BOT_REACT_EMOJI,
4343
channel=details.channel_to_respond,
4444
message_ts=details.msg_to_respond,
4545
remove=False,

backend/onyx/onyxbot/slack/handlers/handle_regular_answer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
from onyx.chat.process_message import stream_chat_message_objects
1515
from onyx.configs.app_configs import DISABLE_GENERATIVE_AI
1616
from onyx.configs.constants import DEFAULT_PERSONA_ID
17-
from onyx.configs.onyxbot_configs import DANSWER_REACT_EMOJI
1817
from onyx.configs.onyxbot_configs import MAX_THREAD_CONTEXT_PERCENTAGE
1918
from onyx.configs.onyxbot_configs import ONYX_BOT_DISABLE_DOCS_ONLY_ANSWER
2019
from onyx.configs.onyxbot_configs import ONYX_BOT_DISPLAY_ERROR_MSGS
2120
from onyx.configs.onyxbot_configs import ONYX_BOT_NUM_RETRIES
21+
from onyx.configs.onyxbot_configs import ONYX_BOT_REACT_EMOJI
2222
from onyx.context.search.enums import OptionalSearchSetting
2323
from onyx.context.search.models import BaseFilters
2424
from onyx.context.search.models import RetrievalDetails
@@ -256,7 +256,7 @@ def _get_slack_answer(
256256

257257
# In case of failures, don't keep the reaction there permanently
258258
update_emote_react(
259-
emoji=DANSWER_REACT_EMOJI,
259+
emoji=ONYX_BOT_REACT_EMOJI,
260260
channel=message_info.channel_to_respond,
261261
message_ts=message_info.msg_to_respond,
262262
remove=True,
@@ -312,7 +312,7 @@ def _get_slack_answer(
312312
# Got an answer at this point, can remove reaction and give results
313313
if not is_slash_command: # Slash commands don't have reactions
314314
update_emote_react(
315-
emoji=DANSWER_REACT_EMOJI,
315+
emoji=ONYX_BOT_REACT_EMOJI,
316316
channel=message_info.channel_to_respond,
317317
message_ts=message_info.msg_to_respond,
318318
remove=True,

backend/onyx/onyxbot/slack/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def check_message_limit() -> bool:
8989
High traffic at the end of one period and start of another could cause
9090
the limit to be exceeded.
9191
"""
92-
if ONYX_BOT_RESPONSE_LIMIT_PER_TIME_PERIOD == 0:
92+
if ONYX_BOT_RESPONSE_LIMIT_PER_TIME_PERIOD <= 0:
9393
return True
9494
global _ONYX_BOT_MESSAGE_COUNT
9595
global _ONYX_BOT_COUNT_START_TIME

deployment/docker_compose/docker-compose.multitenant-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ services:
432432
&& /etc/nginx/conf.d/run-nginx.sh app.conf.template"
433433
434434
minio:
435-
image: minio/minio:latest
435+
image: minio/minio:RELEASE.2025-07-23T15-54-02Z-cpuv1
436436
restart: unless-stopped
437437
ports:
438438
- "9004:9000"

deployment/docker_compose/docker-compose.prod-cloud.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ services:
223223
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
224224

225225
minio:
226-
image: minio/minio:latest
226+
image: minio/minio:RELEASE.2025-07-23T15-54-02Z-cpuv1
227227
restart: unless-stopped
228228
environment:
229229
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minioadmin}

deployment/docker_compose/docker-compose.prod-no-letsencrypt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ services:
229229
- .env.nginx
230230

231231
minio:
232-
image: minio/minio:latest
232+
image: minio/minio:RELEASE.2025-07-23T15-54-02Z-cpuv1
233233
restart: unless-stopped
234234
environment:
235235
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minioadmin}

deployment/docker_compose/docker-compose.prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ services:
259259
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
260260

261261
minio:
262-
image: minio/minio:latest
262+
image: minio/minio:RELEASE.2025-07-23T15-54-02Z-cpuv1
263263
restart: unless-stopped
264264
environment:
265265
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minioadmin}

0 commit comments

Comments
 (0)