mirror of
https://github.com/reconurge/flowsint.git
synced 2026-05-07 04:09:49 -05:00
[GH-ISSUE #57] Chat not working #598
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @caseypaite on GitHub (Nov 15, 2025).
Original GitHub issue: https://github.com/reconurge/flowsint/issues/57
Looking at the code
flowsint-api/app/api/routes/chat.pyit appears that adding Mistral API key as environment variableMISTRAL_API_KEYin.envwould allow me to use Mistral AI. But even after adding the API key there Chat generates error sayingFailed to get AI completion: 500: Mistral API key not configured. Adding the key in Vault does not resolve the issue either.@dextmorgn commented on GitHub (Nov 15, 2025):
Hello @caseypaite,
Thanks for raising this issue.
The chat should normally work if you add the api key in the
.envfile.But you need to restart the services and make sure the env is correctly setup.
I'd suggest deleting all
.envfiles in app/api/core then add your api key in.env.exampleand relaunch the install.I'll work on a better documentation and Vault support.
Let me know !
@caseypaite commented on GitHub (Nov 15, 2025):
Hi @dextmorgn , thanks for the suggestion and also thank you for developing this whole package.
Here is what i did:
Added
MISTRAL_API_KEY=key_from_mistralto the.env.examplefile, then:make prodIssue still not resolved.
PDCP_API_KEYandASNMAPadded through Vault worked perfectly fine. Wished Mistral integration can also be done through Valut.@dextmorgn commented on GitHub (Nov 15, 2025):
Cool, thank you for testing and letting me know.
I'll work on this probably next week, and let you know on this thread.
@caseypaite commented on GitHub (Nov 15, 2025):
Finally figured it out.
The
MISTRAL_API_KEYenvironment variable was not declared indocker-compose.prod.yml, this API Key is required only by the API backend. So, I added the environment variable in the docker-compose file:This resolved the issue.
@dextmorgn It would be convenient for users if
.env.examplecontain placeholders for the variable names (could be commented out). Also the docker-compose files should also contain references to all the environment variables to be imported from the.envfiles.I'm closing the issue at my end.
Regards.
@dextmorgn commented on GitHub (Nov 15, 2025):
@caseypaite,
Thanks for figuring it out.
Would you mind creating a PR for this fix ?
Thanks !
@caseypaite commented on GitHub (Nov 15, 2025):
Hi @dextmorgn , I have commited changes to files
.env.exampleanddocker-compose.prod.yml. But managed to create PR for one of them. I'm not so good with git operations.