Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide more information about needed key #24

Open
stpaultim opened this issue Dec 8, 2024 · 5 comments
Open

Provide more information about needed key #24

stpaultim opened this issue Dec 8, 2024 · 5 comments

Comments

@stpaultim
Copy link
Member

stpaultim commented Dec 8, 2024

I'm keep getting this message. As I reasearch the possible sorce of this problem, I'm leaning that legacy keys start with sk- and newer keys start with sk-proj-. I'm told some older apps don't accept the new sku-proj- keys and I should verify this before proceeding.

I'm assuming that this project does accept the newer keys, but it would be helpful if there were documentation in the wiki OR even some help text in the module config page to indicate which keys work.

Incorrect API key provided: sk-proj-********************************************************************************************************************fun9. You can find your API key at https://platform.openai.com/account/api-keys.
@keiserjb
Copy link
Collaborator

keiserjb commented Dec 8, 2024

I think this is the same thing going on here. https://www.drupal.org/project/openai/issues/3465426

I thought since the key module was implemented like suggested by Drupal that we wouldn't have a problem. I guess I was wrong. I need to get a newer API key to test with.

@stpaultim
Copy link
Member Author

ChatGPT said that I should be able to create a legacy key in this situation, but I could not find a way to generate a NEW legacy API key. I will try again.

@stpaultim
Copy link
Member Author

stpaultim commented Dec 8, 2024

So, maybe this project does not accept the newer keys. Despite telling me, last night, that it was possible to generate legacy keys. ChatGPT is today telling me that it is NOT possible.

So, it seems that I may not be able to use this module until it will accommodate newer keys.

@keiserjb
Copy link
Collaborator

keiserjb commented Dec 8, 2024

OpenAI gave me a key that was 162 characters long. The key module truncated it to 128. I'm opening an issue there.

@keiserjb
Copy link
Collaborator

keiserjb commented Dec 8, 2024

backdrop-contrib/key#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants