-
Notifications
You must be signed in to change notification settings - Fork 160
Description
What happened?
⠴ Starting execution: planner...INFO:src.workflow.agent_factory:publisher evaluating next action
INFO:httpx:HTTP Request: POST https://api.deepseek.com/chat/completions "HTTP/1.1 422 Unprocessable Entity"
Traceback (most recent call last):
File "E:\python_proj\cooragent\src\workflow\process.py", line 158, in _process_workflow
command = node_func(state)
^^^^^^^^^^^^^^^^
File "E:\python_proj\cooragent\src\workflow\agent_factory.py", line 63, in publisher_node
.invoke(messages)
^^^^^^^^^^^^^^^^
File "C:\Users\74151\anaconda3\envs\cooragent\Lib\site-packages\langchain_core\runnables\base.py", line 3023, in invoke
input = context.run(step.invoke, input, config, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\74151\anaconda3\envs\cooragent\Lib\site-packages\langchain_core\runnables\base.py", line 5358, in invoke
return self.bound.invoke(
^^^^^^^^^^^^^^^^^^
File "C:\Users\74151\anaconda3\envs\cooragent\Lib\site-packages\langchain_core\language_models\chat_models.py", line 307, in invoke
self.generate_prompt(
File "C:\Users\74151\anaconda3\envs\cooragent\Lib\site-packages\langchain_core\language_models\chat_models.py", line 843, in
generate_prompt
return self.generate(prompt_messages, stop=stop, callbacks=callbacks, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\74151\anaconda3\envs\cooragent\Lib\site-packages\langchain_core\language_models\chat_models.py", line 683, in generate
self._generate_with_cache(
File "C:\Users\74151\anaconda3\envs\cooragent\Lib\site-packages\langchain_core\language_models\chat_models.py", line 908, in
_generate_with_cache
result = self._generate(
^^^^^^^^^^^^^^^
File "C:\Users\74151\anaconda3\envs\cooragent\Lib\site-packages\langchain_openai\chat_models\base.py", line 931, in _generate
response = self.root_client.beta.chat.completions.parse(**payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\74151\anaconda3\envs\cooragent\Lib\site-packages\openai\resources\beta\chat\completions.py", line 158, in parse
return self._post(
^^^^^^^^^^^
File "C:\Users\74151\anaconda3\envs\cooragent\Lib\site-packages\openai_base_client.py", line 1239, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\74151\anaconda3\envs\cooragent\Lib\site-packages\openai_base_client.py", line 1034, in request
raise self._make_status_error_from_response(err.response) from None
openai.UnprocessableEntityError: Failed to deserialize the JSON body into the target type: response_format: response_format.type
json_schema is unavailable now at line 1 column 4947
⠙ Starting execution: publisher...ERROR:src.workflow.process:Error in Agent workflow: Failed to deserialize the JSON body into the target type: response_format: response_format.type json_schema is unavailable now at line 1 column 4947
Distribution version
macOS x64 (Intel)
App Version
No response
What browsers are you seeing the problem on if you're using web version?
No response
Are you self-hosting?
- Yes
Self-hosting Version
No response
Relevant log output
Anything else?
No response