agentsea / surfkit

A toolkit for building multimodal AI agents
https://docs.hub.agentsea.ai
MIT License
113 stars 10 forks source link

Entering keys for agents in process fails #78

Closed mariyadavydova closed 5 months ago

mariyadavydova commented 5 months ago

% surfkit create agent -r process -n robby002 -f ./agent.yaml

This agent requires one of the following LLM API keys:

Would you like to enter an API key for 'gpt-4o' [y/N]: y OPENAI_API_KEY: Running agent './agent.yaml' with runtime 'process' and name 'robby002'... running agent on port 9090 Agent not yet available, retrying... Failed to run agent: Failed to start agent, it did not pass health checks. INFO:mllm.router:loading models with preference: ['gpt-4o'] Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/Users/mariyadavydova/projects/agentsea/surfslicer/surfslicer/server.py", line 12, in from .agent import Agent, router File "/Users/mariyadavydova/projects/agentsea/surfslicer/surfslicer/agent.py", line 19, in from .tool import SemanticDesktop, router File "/Users/mariyadavydova/projects/agentsea/surfslicer/surfslicer/tool.py", line 21, in router = Router.from_env() ^^^^^^^^^^^^^^^^^ File "/usr/local/Caskroom/miniconda/base/envs/surfkit1406/lib/python3.12/site-packages/mllm/router.py", line 271, in from_env raise ValueError("No API keys found in environment variables.") ValueError: No API keys found in environment variables.