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

Self-hosted version ask user to login and provide API key. Completion/chat not working. #30

Closed
hazratisulton opened this issue Sep 7, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@hazratisulton
Copy link

hazratisulton commented Sep 7, 2023

There is several problems.
1.
Self-hosted version trying to login and check API key even if Inference URL set to http://127.0.0.1:8008/)
This messages are repeated in the log:

2023-09-08 01:49:25,452 [ 451242]   WARN - check_login - call
2023-09-08 01:49:25,526 [ 451316]   WARN - check_login - recall: {
    "retcode": "FAILED",
    "human_readable_message": "The API key is not recognized (1)."
}

Steps to reproduce:

  1. Install Refact plugin.
  2. Click to login to RefactAI.
  3. Click to Settings
  4. Set Advanced - Inference URL to http://127.0.0.1:8008/ and save settings.
    5 Try completion - it works. Try open chat - No chats availiable

Workaround: login to cloud, then delete API key and set Inference URL for self-hosted.

Sometimes you are not logged as self-hosted but logged as null. In this case completion and chat not working.
Steps to reproduce: First installation?

Plugin version 1.1.53

@hazratisulton hazratisulton added the bug Something isn't working label Sep 7, 2023
@hazratisulton hazratisulton changed the title Self-hosted version ask user to login and provide API key Self-hosted version ask user to login and provide API key. Completion/chat not working. Sep 7, 2023
reymondzzzz added a commit that referenced this issue Sep 12, 2023
@hazratisulton
Copy link
Author

1.1.53-fixes-9-b294d942 - OK

reymondzzzz added a commit that referenced this issue Sep 19, 2023
@hazratisulton
Copy link
Author

First case fixed here https://plugins.jetbrains.com/plugin/20647-refact-ai/versions/stable/399313
2nd can't reproduce.

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

1 participant