Skip to content

Commit 513337f

Browse files
committed
chore: update config
1 parent 90209a8 commit 513337f

29 files changed

Lines changed: 19 additions & 1130 deletions

src/server/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ COPY requirements.txt .
2626
RUN pip install --no-cache-dir --upgrade pip \
2727
&& pip install --no-cache-dir -r requirements.txt
2828

29-
# Install Playwright browsers and dependencies in its own layer
30-
RUN playwright install --with-deps
31-
3229
# --- Build Arguments ---
3330
# These arguments are passed from docker-compose.yaml or the `docker build` command.
3431
ARG OPENAI_API_KEY

src/server/litellm-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ model_list:
1111
litellm_params:
1212
model: gemini/gemini-2.5-flash-lite
1313
api_key: os.environ/GEMINI_API_KEY
14+
- model_name: gemini-2.5-flash-lite
15+
litellm_params:
16+
model: gemini/gemini-2.5-flash-lite
17+
api_key: os.environ/GEMINI_API_KEY_FALLBACK_1
1418

1519
litellm_settings:
1620
drop_params: true

src/server/main/chat/utils.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,20 @@ async def _get_stage1_response(messages: List[Dict[str, Any]], connected_tools_m
8484
try:
8585
logger.info(f"Stage 1: Attempting LLM call")
8686

87-
def sync_api_call():
88-
return client.chat.completions.create(
87+
async def sync_api_call():
88+
return await client.chat.completions.create(
8989
model=OPENAI_MODEL_NAME,
9090
messages=formatted_messages,
9191
)
9292

93-
completion = await asyncio.to_thread(sync_api_call)
93+
completion = await asyncio.to_thread(sync_api_call)
9494

95-
# FIX: Add a check to handle cases where the API returns a successful
96-
# response but with an empty 'choices' list (e.g., due to content filtering).
97-
if not completion.choices:
98-
raise Exception("LLM response was successful but contained no choices.")
95+
# FIX: Add a check to handle cases where the API returns a successful
96+
# response but with an empty 'choices' list (e.g., due to content filtering).
97+
if not completion.choices:
98+
raise Exception("LLM response was successful but contained no choices.")
9999

100-
final_content_str = completion.choices[0].message.content
100+
final_content_str = completion.choices[0].message.content
101101

102102
logger.info(f"Stage 1 LLM output for user {user_id}: {final_content_str}")
103103
cleaned_output = clean_llm_output(final_content_str)

src/server/main/plans.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
PLAN_LIMITS = {
22
"free": {
3-
"text_messages_daily": 50,
4-
"sync_tasks_daily": 5,
5-
"voice_chat_daily_seconds": 2 * 60,
3+
"text_messages_daily": 25,
4+
"voice_chat_daily_seconds": 0,
65
"one_time_tasks_daily": 5, # async tasks
7-
"recurring_tasks_active": 3, # recurring workflows
8-
"triggered_tasks_active": 2, # triggered workflows
9-
"swarm_tasks_daily": 1,
10-
"swarm_sub_agents_max": 10,
6+
"recurring_tasks_active": 2, # recurring workflows
7+
"triggered_tasks_active": 1, # triggered workflows
8+
"swarm_tasks_daily": 0,
9+
"swarm_sub_agents_max": 0,
1110
"file_uploads_daily": 3, # New
1211
"memories_total": 100, # New
1312
},
1413
"pro": {
1514
"text_messages_daily": 100,
16-
"sync_tasks_daily": float('inf'), # Unlimited
1715
"voice_chat_daily_seconds": 10 * 60,
1816
"one_time_tasks_daily": 20, # async tasks
1917
"recurring_tasks_active": 10, # recurring workflows
@@ -25,7 +23,6 @@
2523
},
2624
"selfhost": { # Self-host plan has unlimited access
2725
"text_messages_daily": float('inf'),
28-
"sync_tasks_daily": float('inf'),
2926
"voice_chat_daily_seconds": float('inf'),
3027
"one_time_tasks_daily": float('inf'),
3128
"recurring_tasks_active": float('inf'),
@@ -47,6 +44,5 @@
4744
]
4845

4946
PRO_ONLY_INTEGRATIONS = [
50-
"gdocs", "gslides", "gsheets", # GSuite
51-
"linkedin"
47+
"notion", "github", "slack", "discord", "trello"
5248
]

src/server/mcp_hub/gshopping/.env.template

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/server/mcp_hub/gshopping/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/server/mcp_hub/gshopping/auth.py

Lines changed: 0 additions & 71 deletions
This file was deleted.

src/server/mcp_hub/gshopping/main.py

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/server/mcp_hub/gshopping/prompts.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/server/mcp_hub/gshopping/requirements.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)