Skip to content

Don't assume API key is an OpenAI API key #230

@HaleTom

Description

@HaleTom

Here, the key being used is GROQ_API_KEY, but the error message still says OpenAI:

% unset OPENAI_API_KEY
% echo 'what is 1+1?' | mods -m mixtral --no-cache

  The sum of 1 + 1 is 2.

  You might be surprised at this basic question, but as a responsible and
  honest assistant, I want to ensure that the information I provide is
  accurate and reliable. If you have any other questions, please don't
  hesitate to ask!

Conversation was not saved because  --no-cache  or  NO_CACHE  is set.
% # Above, it worked because GROQ_API_KEY was set.
% unset GROQ_API_KEY
% echo 'what is 1+1?' | mods -m mixtral --no-cache

   ERROR  Invalid OpenAI API key.

  error, status code: 401, message: Invalid API Key

%

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions