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

mf login {OPENAI_API_KEY} results in empty .config/mindflow/DB.json on MacOS #116

Closed
Heavy02011 opened this issue Mar 25, 2023 · 10 comments
Closed

Comments

@Heavy02011
Copy link

Heavy02011 commented Mar 25, 2023

running on MacOS 12.6.3, conda 4.3.27, Python 3.9.7
mf login {OPENAI_API_KEY}
runs without errors and correctly shows the API key in run_login but after inspecting
.config/mindflow/DB.json turns out to be empty.

more db.json 
{}

Hence running mf chat "tell me a joke" outputs
No service API key configured. Please configure an API key for at least one service.

@Heavy02011
Copy link
Author

Heavy02011 commented Mar 25, 2023

I tried both ways to install via pip & setup.py.

@verbose-void
Copy link
Collaborator

hmm. that's weird, we'll look into this.

@Heavy02011
Copy link
Author

Heavy02011 commented Mar 27, 2023

could you provide a sample for db.json, then I can test whether this fixes it

@steegecs
Copy link
Collaborator

steegecs commented Mar 27, 2023

This is what the db.json should look like after running mf login <API_KEY>

{
    "configurations": {
        "openai_config": {
            "id": "openai_config",
            "api_key": "<API_KEY>"
         }
    }
}

@steegecs
Copy link
Collaborator

Other configs get added to configurations as well currently.

@steegecs
Copy link
Collaborator

You are running mf login "your api-key string here", right?

@Heavy02011
Copy link
Author

Heavy02011 commented Mar 27, 2023

This is what the db.json should look like after running mf login <API_KEY>

{
    "configurations": {
        "openai_config": {
            "id": "openai_config",
            "api_key": "<API_KEY>"
         }
    }
}

thx! after adding the key to the file it works (as a quick fix)

@steegecs
Copy link
Collaborator

Awesome! Is the indexing and chat with files feature working for you?

@Heavy02011
Copy link
Author

Awesome! Is the indexing and chat with files feature working for you?

need to check that still, just tested with a single chat command

@steegecs
Copy link
Collaborator

Hello @Heavy02011! I have found the source of this issue and addressed it. After viewing the source of the problem, I imagine you and others have been having some difficulty. Thank you for raising this issue, and please reach out with any more concerns or suggestions!

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

3 participants