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

Instruct error #210

Closed
8 of 17 tasks
timuryung opened this issue May 3, 2023 · 1 comment
Closed
8 of 17 tasks

Instruct error #210

timuryung opened this issue May 3, 2023 · 1 comment
Labels
needs triage Needs labels assigned. type | report | bug Confirmed bug in source code.

Comments

@timuryung
Copy link
Contributor

Description

ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 436, in run_asgi
result = await app( # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/fastapi/applications.py", line 276, in call
await super().call(scope, receive, send)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/starlette/applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/starlette/middleware/errors.py", line 184, in call
raise exc
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in call
await self.app(scope, receive, _send)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/starlette/middleware/cors.py", line 92, in call
await self.simple_response(scope, receive, send, request_headers=headers)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/starlette/middleware/cors.py", line 147, in simple_response
await self.app(scope, receive, send)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in call
raise exc
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in call
raise e
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/starlette/routing.py", line 718, in call
await route.handle(scope, receive, send)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/fastapi/routing.py", line 237, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/timur/Downloads/Agent-LLM-1.1.3-alpha/app.py", line 197, in instruct
response = agent.run(
^^^^^^^^^^
File "/Users/timur/Downloads/Agent-LLM-1.1.3-alpha/AgentLLM.py", line 99, in run
instruction_prompt = self.INSTRUCT_PROMPT
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'AgentLLM' object has no attribute 'INSTRUCT_PROMPT'
Знімок екрана 2023-05-03 о 13 35 34

Steps to Reproduce the Bug

  1. Start back and front ends
  2. Go to the agent page
  3. Write instruction (mine is Write tweet about AI)
  4. Click on Instruct agent

Expected Behavior

Instructs agent

Actual Behavior

Throws an AttributeError: 'AgentLLM' object has no attribute 'INSTRUCT_PROMPT' error

Additional Context / Screenshots

No response

Operating System

  • Microsoft Windows
  • Apple MacOS
  • Linux
  • Android
  • iOS
  • Other

Python Version

  • Python <= 3.9
  • Python 3.10
  • Python 3.11

Environment Type - Connection

  • Local
  • Remote

Environment Type - Container

  • Using Docker
  • Not Using Docker

Acknowledgements

  • My issue title is concise, descriptive, and in title casing.
  • I have searched the existing issues to make sure this bug has not been reported yet.
  • I am using the latest version of Agent-LLM.
  • I have provided enough information for the maintainers to reproduce and diagnose the issue.
@timuryung timuryung added needs triage Needs labels assigned. type | report | bug Confirmed bug in source code. labels May 3, 2023
@Josh-XT
Copy link
Owner

Josh-XT commented May 3, 2023

Fixed in #207, please update.

@Josh-XT Josh-XT closed this as completed May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Needs labels assigned. type | report | bug Confirmed bug in source code.
Projects
None yet
Development

No branches or pull requests

2 participants