Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse Error #53

Open
Captain-Bacon opened this issue Apr 28, 2023 · 0 comments
Open

Parse Error #53

Captain-Bacon opened this issue Apr 28, 2023 · 0 comments

Comments

@Captain-Bacon
Copy link

Describe the bug
I'm constantly getting the following Parse Error:

api/execute/async/acbde5bb-641c-41c9-b704-d73a532af354 HTTP/1.1" 200 OK
eval | INFO: 172.21.0.1:43084 - "GET /api/execute/async/acbde5bb-641c-41c9-b704-d73a532af354 HTTP/1.1" 200 OK
eval | INFO: 172.21.0.1:43084 - "GET /api/execute/async/acbde5bb-641c-41c9-b704-d73a532af354 HTTP/1.1" 200 OK
eval | INFO: 172.21.0.1:43084 - "GET /api/execute/async/acbde5bb-641c-41c9-b704-d73a532af354 HTTP/1.1" 200 OK
eval | [2023-04-28 12:15:34,546: ERROR/ForkPoolWorker-3] Chain Error: parse error
eval | [2023-04-28 12:15:34,550: ERROR/ForkPoolWorker-3] Task task_execute[acbde5bb-641c-41c9-b704-d73a532af354] raised unexpected: Exception('parse error')
eval | Traceback (most recent call last):
eval | File "/app/.venv/lib/python3.10/site-packages/celery/app/trace.py", line 451, in trace_task
eval | R = retval = fun(*args, **kwargs)
eval | File "/app/.venv/lib/python3.10/site-packages/celery/app/trace.py", line 734, in protected_call
eval | return self.run(*args, **kwargs)
eval | File "/app/api/worker.py", line 22, in task_execute
eval | response = executor({"input": prompt})
eval | File "/app/.venv/lib/python3.10/site-packages/langchain/chains/base.py", line 116, in call
eval | raise e
eval | File "/app/.venv/lib/python3.10/site-packages/langchain/chains/base.py", line 113, in call
eval | outputs = self._call(inputs)
eval | File "/app/.venv/lib/python3.10/site-packages/langchain/agents/agent.py", line 822, in _call
eval | next_step_output = self._take_next_step(
eval | File "/app/.venv/lib/python3.10/site-packages/langchain/agents/agent.py", line 702, in _take_next_step
eval | output = self.agent.plan(intermediate_steps, **inputs)
eval | File "/app/.venv/lib/python3.10/site-packages/langchain/agents/agent.py", line 413, in plan
eval | action = self._get_next_action(full_inputs)
eval | File "/app/.venv/lib/python3.10/site-packages/langchain/agents/agent.py", line 374, in _get_next_action
eval | full_output = self.llm_chain.predict(**full_inputs)
eval | File "/app/.venv/lib/python3.10/site-packages/langchain/chains/llm.py", line 151, in predict
eval | return self(kwargs)[self.output_key]
eval | File "/app/.venv/lib/python3.10/site-packages/langchain/chains/base.py", line 116, in call
eval | raise e
eval | File "/app/.venv/lib/python3.10/site-packages/langchain/chains/base.py", line 113, in call
eval | outputs = self._call(inputs)
eval | File "/app/.venv/lib/python3.10/site-packages/langchain/chains/llm.py", line 57, in _call
eval | return self.apply([inputs])[0]
eval | File "/app/.venv/lib/python3.10/site-packages/langchain/chains/llm.py", line 118, in apply
eval | response = self.generate(input_list)
eval | File "/app/.venv/lib/python3.10/site-packages/langchain/chains/llm.py", line 62, in generate
eval | return self.llm.generate_prompt(prompts, stop)
eval | File "/app/.venv/lib/python3.10/site-packages/langchain/chat_models/base.py", line 83, in generate_prompt
eval | self.callback_manager.on_llm_end(output, verbose=self.verbose)
eval | File "/app/.venv/lib/python3.10/site-packages/langchain/callbacks/base.py", line 159, in on_llm_end
eval | handler.on_llm_end(response)
eval | File "/app/core/agents/callback.py", line 27, in on_llm_end
eval | parsed = self.parser.parse_all(text)
eval | File "/app/core/agents/parser.py", line 15, in parse_all
eval | raise Exception("parse error")
eval | Exception: parse error

Desktop (please complete the following information):

  • OS: Mac on intel chipset
  • Browser: chrome
  • Most recent as of date of writing this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant