LAION-AI / Open-Assistant

OpenAssistant is a chat-based assistant that understands tasks, can interact with third-party systems, and retrieve information dynamically to do so.
https://open-assistant.io
Apache License 2.0
37.04k stars 3.23k forks source link

How do I bypass login on local development server? #3503

Closed moonman239 closed 1 year ago

moonman239 commented 1 year ago

I'm trying to create a chatbot-based application.

I'm running the local development server and I tried to POST to the Chats endpoint without providing an access token but got a "Not authenticated" error.

I managed to get an access token, but the local development server's documentation for the "chats" endpoint does not indicate how to pass it to a request.

notmd commented 1 year ago

There is a debug login, you need to send a request to it to get an access token, then send an Authorization: Bearer ${token} header to any other endpoint. If this work, please close this

moonman239 commented 1 year ago

thanks