Uploaded image for project: 'Red Hat Enterprise Linux AI'
  1. Red Hat Enterprise Linux AI
  2. RHELAI-2687

Update the way users should validate the api key

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Documentation
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      Under `Serving and chatting with the models`there's a section for:
      `Creating an API key for chatting with a model`
      section number 5 currently instruct the user to:

      1. You can verify that the server is using API key authentication by running the following command:
      $ ilab model chat 

       
       
      Then, seeing the following error that shows an unauthorized user.

      openai.AuthenticationError: Error code: 401 - {'error': 'Unauthorized'}
       

       But since `ilab chat` behavior changed this command no longer fails with the above error.
      We should update the docs (at least until we sort out the desired behavior for `ilab chat` in this scenario) to validate the API key is indeed required using a curl command:

      1. You can verify that the server is using API key authentication by running the following command:
      $ curl http://127.0.0.1:8080/v1/models
       

      Then, seeing the following error that shows an unauthorized user.

      {'error': 'Unauthorized'} 

              kelbrown@redhat.com Kelly Brown
              ercohen Eran Cohen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: