-
Notifications
You must be signed in to change notification settings - Fork 85
Open
Description
I finished editing the config.json file and installing the dependencies:
{
"systemPrompt": "You are an AI assistant helping a software engineer...",
"llm": {
"provider": "openai",
"model": "xxxxx-Large-32K-Chat",
"api_key": "xxxxxxxxxxxxxxxxxxxxx",
"base_url": "https://aigc.xxxxxx.com/v1/openai/native"
},
"mcpServers": {
"fetch": {
"command": "uvx",
"args": ["mcp-server-fetch"],
"requires_confirmation": ["fetch"],
"enabled": true,
"exclude_tools": []
},
...
When I simply tested the "hi" prompt, I got an error:
root@ubuntu-linux-2404:~/.llm# llm hi
Thinking...
Error: 系统异常
Stack trace:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/dist-packages/mcp_client_cli/cli.py", line 252, in
handle_conversation
async for chunk in agent_executor.astream(
File "/usr/local/lib/python3.12/dist-packages/langgraph/pregel/__init__.py", line 2655, in
astream
async for _ in runner.atick(
File "/usr/local/lib/python3.12/dist-packages/langgraph/prebuilt/chat_agent_executor.py",
line 763, in acall_model
response = cast(AIMessage, await model_runnable.ainvoke(state, config))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/langchain_core/runnables/base.py", line 3089,
in ainvoke
input = await asyncio.create_task(part(), context=context) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/langchain_core/runnables/base.py", line 5453,
in ainvoke
return await self.bound.ainvoke(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/langchain_core/language_models/chat_models.py
line 353, in ainvoke
llm_result = await self.agenerate_prompt(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/langchain_core/language_models/chat_models.py
line 905, in agenerate_prompt
return await self.agenerate(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/langchain_core/language_models/chat_models.py
line 863, in agenerate
raise exceptions[0]
File "/usr/local/lib/python3.12/dist-packages/langchain_core/language_models/chat_models.py
line 1021, in _agenerate_with_cache
async for chunk in self._astream(messages, stop=stop, **kwargs):
File "/usr/local/lib/python3.12/dist-packages/langchain_openai/chat_models/base.py", line
2376, in _astream
async for chunk in super()._astream(*args, **kwargs):
File "/usr/local/lib/python3.12/dist-packages/langchain_openai/chat_models/base.py", line
1074, in _astream
async for chunk in response:
File "/usr/local/lib/python3.12/dist-packages/openai/_streaming.py", line 147, in __aiter__
async for item in self._iterator:
File "/usr/local/lib/python3.12/dist-packages/openai/_streaming.py", line 174, in __stream_
raise APIError(
openai.APIError: 系统异常
During task with name 'agent' and id '64ae6f38-79b7-44b0-bf64-66929c8d2e6d'
Is my use wrong?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels