EmergenceAI / Agent-E

Agent driven automation starting with the web. Try it: https://www.emergence.ai/web-automation-api
MIT License
867 stars 123 forks source link

Unable to continue operations after first response from the API #82

Open weixuang opened 4 months ago

weixuang commented 4 months ago

Title

Unable to continue operations after first response from the API

Description

After executing a command, the agent does not respond to subsequent instructions, resulting in a 404 error. The official OpenAI API is not available in my region, which prevents me from utilizing it for my projects. I require the capabilities provided by OpenAI's models for my application, and the third-party API serves as a workaround to access those features.

Steps to Reproduce

  1. Use the API endpoint https://api.gptsapi.net/v1/chat/completions.
  2. Send a request to search for 'weibo' on Google.
  3. Observe the response.
  4. Attempt to send a subsequent command.

Expected Behavior

The agent should continue to respond to subsequent commands after the first response.

Actual Behavior

The API returns a 404 error, indicating that the resource could not be found.

Screenshots

1721574362834 1721575131233 1721575191601

Environment

Windows chrome https://api.gptsapi.net/v1/chat/completions gpt-4o-mini

Additional Context

weixuang commented 3 months ago

Maybe there is someting wrong with my chromedriver?gpt responses but there is no operation. I just pip the driver.

1722584191926
weixuang commented 3 months ago

I have no idea about the detail between that driver and gpt. Who can teach me what happen?

deepak-akkil commented 3 months ago

The issue does seem like you are using a model that does not support function calling. Currently, Agent-E supports only function calling models. It should be possible to make it work with non function calling models as well, but this will require some code changes. If you are interested, i am happy to provide more instructions via DM.