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

not recognizing API keys #118

Open
Sput opened this issue May 4, 2024 · 3 comments
Open

not recognizing API keys #118

Sput opened this issue May 4, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Sput
Copy link

Sput commented May 4, 2024

I've added my API keys on the User Menu LLM Settings, but still when I try to do anything it says I need to add API keys. I have tried running it both as a webapp, and inside a docker container, both give the same message.

@fynnfluegge
Copy link
Owner

fynnfluegge commented May 5, 2024

Hi @Sput thanks for reporting! Do you see some errors in the browser console on save? What is your userconfig on pageload?

@Sput
Copy link
Author

Sput commented May 5, 2024

Screenshot 2024-05-05 at 1 29 17 PM

@fynnfluegge
I expanded the error I get when I click to save the API keys.

As far as the userconfig: at address localhost:3002/UserConfig I see { message: Missing Authentication Token }

I'm just looking at your code base for the first time, so I'm probably wrong, but is the problem that the save-user-config-handler doesn't take in a userConfig struct in the handle request function?

In the meantime, is there anywhere in the code I can save my API keys manually so I can get to trying things out?

@fynnfluegge fynnfluegge added the bug Something isn't working label May 6, 2024
@fynnfluegge
Copy link
Owner

fynnfluegge commented May 6, 2024

@Sput ok this should not happen on local message: Missing Authentication Token 🤔

Sure, you are able to add the config directly to dynamodb as a workaround with:
aws dynamodb put-item --endpoint-url http://localhost:8041 --table-name tnn-UserConfig \ --item '{"id": {"S": "<YOUR_USER_ID>"}, "embeddingModel": {"S": "<SELECTED_EMBEDDING>"}, "llm": {"S", "<SELECTED_LLM>"}, "openAiApiKey": {"S": "<API_KEY>"}, "anthropicApiKey": {"S": "<API_KEY>"}}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants