Skip to content
Closed
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 pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies = [
"pydantic-settings>=2.10.1", # Config management
"a2a-sdk>=0.3.0", # For Google Agent2Agent protocol
"deprecated>=1.2.18",
"google-adk>=1.10.0", # For basic agent architecture
"google-adk>=1.11.0", # For basic agent architecture
"litellm>=1.74.3", # For model inference
"loguru>=0.7.3", # For better logging
"opentelemetry-exporter-otlp>=1.35.0",
Expand Down
9 changes: 7 additions & 2 deletions veadk/configs/model_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

from pydantic_settings import BaseSettings, SettingsConfigDict

from veadk.auth.veauth.ark_veauth import ARKVeAuth
from veadk.consts import (
DEFAULT_MODEL_AGENT_API_BASE,
DEFAULT_MODEL_AGENT_NAME,
Expand All @@ -39,4 +38,10 @@ class ModelConfig(BaseSettings):

@cached_property
def api_key(self) -> str:
return os.getenv("MODEL_AGENT_API_KEY") or ARKVeAuth().token
_api_key = os.getenv("MODEL_AGENT_API_KEY")
if not _api_key:
# Only import ARKVeAuth if api_key is not set
from veadk.auth.veauth.ark_veauth import ARKVeAuth

_api_key = ARKVeAuth().token
return _api_key