Open wes1993 opened 11 months ago
@wes1993 Thanks for checking out Receipt Wrangler, and for all the debugging information.
It seems that the OpenAI client isn't being initialized when the app starts, which will happen if the a To verify this, there should be some entries in the logs that log what is being initialized when. For example:
Can you confirm what Initializing lines show up for you? You may restart the compose stack to see which statements show up, and then check the app logs (not the docker logs).
Dear @Noah231515, thanks a lot for your reply, i can confirm that seems OpenAI is not initialized..
App2023/12/05 08:16:22 main.go:33: Initializing app...
App2023/12/05 08:16:22 main.go:55: Initializing Imagick...
App2023/12/05 08:16:22 main.go:61: Initializing Tesseract...
App2023/12/05 08:16:22 main.go:97: Initialize completed
App2023/12/05 08:37:01 email.go:92: exit status 1
App2023/12/05 08:37:01 email.go:67: exit status 1
App2023/12/05 08:37:01 generic_handler.go:55: exit status 1
App2023/12/05 08:37:02 email.go:92: exit status 1
App2023/12/05 08:37:02 email.go:67: exit status 1
App2023/12/05 08:37:02 generic_handler.go:55: exit status 1
Just to be sure, for using the OpenAI i need a paid subscription or something else? (Now i have a free account without card registered)
There is a problem with emails... When i try to push new emails client go in error...
Best Regards Stefano
@wes1993
To use OpenAI's API, you do not need a subscription. This uses OpenAI's pay as you go for their API. It currently uses GPT3.5Turbo and it is very cheap. Of all the testing, and actual usage of their API, I have spent less than $1USD. Just wanted to give some perspective of the cost.
Are your configs being mounted correctly to the server container? Your config directory should contain your feature-config.prod.json and config.prod.json
Try logging into your host server and running the following command while the containers are running:
docker exec -it receipt-wrangler-api-1 cat /go/api/config/config.prod.json
docker exec -it receipt-wrangler-api-1 cat /go/api/config/feature-config.prod.json
The output should be your two config files.
The relevant ways the OpenAPI Client is not initialized is if AiPoweredReceipts is false, or the type in AiSettings is set to something other than "openAi", or if configs are not mounted, then default values will be used which makes me think is what is happening.
Hello, Thanks for this wonderful project, unfortunately i have one problem.... When i try to add a new receipt and use OCR (OpenAI) i have this errors:
This is my docker-compose.yml file:
Here my config.prod.json:
feature-config.prod.json
Best Regards Stefano