Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

The requested URL was not found on the server #151

Open
artivis opened this issue Apr 18, 2023 · 2 comments
Open

The requested URL was not found on the server #151

artivis opened this issue Apr 18, 2023 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@artivis
Copy link
Contributor

artivis commented Apr 18, 2023

Hi,

I keep hitting the following error.

InvalidRequestError: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

This happens when trying to droppin' replace OpenAI with basaran (tested with both babyagi and langchain's own implementation of babyagi as a Jupyter notbook). While I had to tweak the former, the later supports setting the api_base since recently.

I did make sure that basaran is running fine, I can hit it with,

curl http://127.0.0.1/v1/completions \
    -H 'Content-Type: application/json' \
    -d '{ "prompt": "once upon a time,", "echo": true }'

Any pointer would be appreciated :)

@fardeon
Copy link
Member

fardeon commented Apr 19, 2023

I think there might be two possible reasons for the 404 error:

  1. Please make sure api_base is set correctly. Specifically:
api_base
http://127.0.0.1/v1
http://127.0.0.1/v1/
http://127.0.0.1/
  1. Currently, Basaran only supports the completions API, while chat and other features are still a work-in-progress. Please make sure you are not using an unsupported API.

@artivis
Copy link
Contributor Author

artivis commented Apr 19, 2023

  1. The api_base is indeed set correctly.
  2. I finally could get it to 'work' with babyagi. The call is made and babyagi starts running however it spits a bunch of numbers and crash. I'm not planning to invest more time debugging at this point.
    As for langchain's babyagi, I still can't get it to work. After digging a bit I do believe it is using the Completion API (openai.Completion).

@fardeon fardeon added the help wanted Extra attention is needed label Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants