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
10 changes: 5 additions & 5 deletions AgentCrew/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import nest_asyncio

nest_asyncio.apply()

from AgentCrew.modules.config import ConfigManagement
import click
import importlib
Expand Down Expand Up @@ -25,10 +29,6 @@
from AgentCrew.modules.image_generation import ImageGenerationService
from PySide6.QtWidgets import QApplication

import nest_asyncio

nest_asyncio.apply()


@click.group()
def cli():
Expand Down Expand Up @@ -91,7 +91,7 @@ def load_api_keys_from_config():
for key_name in keys_to_check:
if key_name in api_keys_config and api_keys_config[key_name]:
# Prioritize config file over existing environment variables
os.environ[key_name] = str(api_keys_config[key_name])
os.environ[key_name] = str(api_keys_config[key_name]).strip()


def check_and_update():
Expand Down
2 changes: 1 addition & 1 deletion AgentCrew/modules/google/native_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __init__(self):
self.client = genai.Client(api_key=api_key)

# Default model
self.model = "gemini-2.5-pro-preview-05-06"
self.model = "gemini-2.5-flash-preview-05-20"

# Initialize tools and handlers
self.tools = []
Expand Down
2 changes: 1 addition & 1 deletion AgentCrew/modules/gui/widgets/configs/global_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def save_settings(self):
self.global_config["api_keys"] = {}

for key_name, line_edit in self.api_key_inputs.items():
self.global_config["api_keys"][key_name] = line_edit.text()
self.global_config["api_keys"][key_name] = line_edit.text().strip()

# Save global settings
if "global_settings" not in self.global_config:
Expand Down
11 changes: 1 addition & 10 deletions AgentCrew/modules/llm/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,7 @@
default=True,
),
Model(
id="gemini-2.5-pro-preview-05-06",
provider="google",
name="Gemini 2.5 Pro Thinking",
description="Gemini 2.5 Pro with thinking",
capabilities=["tool_use", "thinking", "vision"],
input_token_price_1m=1.25,
output_token_price_1m=2.5,
),
Model(
id="gemini-2.5-pro-preview-06-05",
id="gemini-2.5-pro",
provider="google",
name="Gemini 2.5 Pro Thinking",
description="Gemini 2.5 Pro with thinking",
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies = [
"tree-sitter>=0.23.2",
"mcp>=1.3.0",
"docling>=2.26.0",
"google-genai>=1.7.0",
"google-genai>=1.7.0,<1.20.0",
"toml>=0.10.2",
"pyside6>=6.8.3",
"markdown>=3.7",
Expand Down Expand Up @@ -68,4 +68,5 @@ where = ["./"]
dev = [
"pygments>=2.19.1",
"pyinstaller>=6.13.0",
"langfuse>=3.0.1",
]
Loading