Skip to content

Commit 24ec1fa

Browse files
lunikaAntoLC
authored andcommitted
🔥(backend) remove settings AI_STREAM
We don't need anymore the AI_STREAM settings, we use the stream all the time.
1 parent 0ba6f02 commit 24ec1fa

File tree

6 files changed

+0
-9
lines changed

6 files changed

+0
-9
lines changed

docs/env.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ These are the environment variables you can set for the `impress-backend` contai
1414
| AI_BOT | Information to give to the frontend about the AI bot | { "name": "Docs AI", "color": "#8bc6ff" }
1515
| AI_FEATURE_ENABLED | Enable AI options | false |
1616
| AI_MODEL | AI Model to use | |
17-
| AI_STREAM | AI Stream to activate | true |
1817
| AI_VERCEL_SDK_VERSION | The vercel AI SDK version used | 6 |
1918
| ALLOW_LOGOUT_GET_METHOD | Allow get logout method | true |
2019
| API_USERS_LIST_LIMIT | Limit on API users | 5 |

src/backend/core/api/viewsets.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2572,7 +2572,6 @@ def get(self, request):
25722572
array_settings = [
25732573
"AI_BOT",
25742574
"AI_FEATURE_ENABLED",
2575-
"AI_STREAM",
25762575
"API_USERS_SEARCH_QUERY_MIN_LENGTH",
25772576
"COLLABORATION_WS_URL",
25782577
"COLLABORATION_WS_NOT_CONNECTED_READY_ONLY",

src/backend/core/tests/test_api_config.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
@override_settings(
2222
AI_BOT={"name": "Test Bot", "color": "#000000"},
2323
AI_FEATURE_ENABLED=False,
24-
AI_STREAM=True,
2524
API_USERS_SEARCH_QUERY_MIN_LENGTH=6,
2625
COLLABORATION_WS_URL="http://testcollab/",
2726
COLLABORATION_WS_NOT_CONNECTED_READY_ONLY=True,
@@ -48,7 +47,6 @@ def test_api_config(is_authenticated):
4847
assert response.json() == {
4948
"AI_BOT": {"name": "Test Bot", "color": "#000000"},
5049
"AI_FEATURE_ENABLED": False,
51-
"AI_STREAM": True,
5250
"API_USERS_SEARCH_QUERY_MIN_LENGTH": 6,
5351
"COLLABORATION_WS_URL": "http://testcollab/",
5452
"COLLABORATION_WS_NOT_CONNECTED_READY_ONLY": True,

src/backend/impress/settings.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,9 +714,6 @@ class Base(Configuration):
714714
default=False, environ_name="AI_FEATURE_ENABLED", environ_prefix=None
715715
)
716716
AI_MODEL = values.Value(None, environ_name="AI_MODEL", environ_prefix=None)
717-
AI_STREAM = values.BooleanValue(
718-
default=True, environ_name="AI_STREAM", environ_prefix=None
719-
)
720717
AI_VERCEL_SDK_VERSION = values.IntegerValue(
721718
6, environ_name="AI_VERCEL_SDK_VERSION", environ_prefix=None
722719
)

src/frontend/apps/e2e/__tests__/app-impress/utils-common.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export const CONFIG = {
1414
color: '#8bc6ff',
1515
},
1616
AI_FEATURE_ENABLED: true,
17-
AI_STREAM: true,
1817
API_USERS_SEARCH_QUERY_MIN_LENGTH: 3,
1918
CRISP_WEBSITE_ID: null,
2019
COLLABORATION_WS_URL: 'ws://localhost:4444/collaboration/ws/',

src/frontend/apps/impress/src/core/config/api/useConfig.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ interface ThemeCustomization {
2929
export interface ConfigResponse {
3030
AI_BOT: { name: string; color: string };
3131
AI_FEATURE_ENABLED?: boolean;
32-
AI_STREAM: boolean;
3332
API_USERS_SEARCH_QUERY_MIN_LENGTH?: number;
3433
COLLABORATION_WS_URL?: string;
3534
COLLABORATION_WS_NOT_CONNECTED_READY_ONLY?: boolean;

0 commit comments

Comments
 (0)