Skip to content

CraftBot is erroring before onboarding asking for BytePlus API key #240

@pursuitofepic

Description

@pursuitofepic

I'm trying to get Craftbot running in docker. When I try to run it for the first time, it errors:

Traceback (most recent call last):
File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/app/app/main.py", line 191, in
main()
File "/app/app/main.py", line 187, in main
asyncio.run(main_async())
File "/usr/local/lib/python3.10/site-packages/nest_asyncio.py", line 30, in run
return loop.run_until_complete(task)
File "/usr/local/lib/python3.10/site-packages/nest_asyncio.py", line 98, in run_until_complete
return f.result()
File "/usr/local/lib/python3.10/asyncio/futures.py", line 201, in result
raise self._exception.with_traceback(self._exception_tb)
File "/usr/local/lib/python3.10/asyncio/tasks.py", line 232, in __step
result = coro.send(None)
File "/app/app/main.py", line 159, in main_async
agent = AgentBase(
File "/app/app/agent_base.py", line 294, in init
GUIHandler.gui_module: GUIModule = GUIModule(
File "/app/app/gui/gui_module.py", line 84, in init
self.llm: LLMInterface = LLMInterface(provider=provider, api_key=api_key, base_url=base_url)
File "/app/app/llm/interface.py", line 50, in init
super().init(
File "/app/agent_core/core/impl/llm/interface.py", line 139, in init
ctx = ModelFactory.create(
File "/app/agent_core/core/models/factory.py", line 147, in create
raise ValueError("API key required for BytePlus")
ValueError: API key required for BytePlus

This is on the first run. Is there a step that I missed in setting this up? If not, it seems like it is a bug.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions