Open imbev opened 1 month ago
sure go ahead, thank you
WIP PR at #37
While working on this issue, I noticed that verify_if_image_can_be_used
appears to be called excessively.
After opening the app and only opening the manage models dialog:
Application started at 09:37:10 PM
DEBUG:alpaca.window:Starting Alpaca's Ollama instance
DEBUG:alpaca.window:Verifying connection
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1:11435
[GIN] 2024/05/23 - 21:37:13 | 200 | 45.607µs | 127.0.0.1 | GET "/"
DEBUG:urllib3.connectionpool:http://127.0.0.1:11435 "GET / HTTP/1.1" 200 17
DEBUG:alpaca.window:Updating list of local models
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1:11435
[GIN] 2024/05/23 - 21:37:13 | 200 | 335.942µs | 127.0.0.1 | GET "/api/tags"
DEBUG:urllib3.connectionpool:http://127.0.0.1:11435 "GET /api/tags HTTP/1.1" 200 377
DEBUG:alpaca.window:Verifying if image can be used
DEBUG:alpaca.window:Verifying if image can be used
DEBUG:alpaca.window:Verifying if image can be used
DEBUG:alpaca.window:Loading history
DEBUG:alpaca.window:Clearing chat
DEBUG:alpaca.window:Updating chat list
DEBUG:alpaca.window:Manage Models button has been clicked
DEBUG:alpaca.window:Updating list of local models
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1:11435
[GIN] 2024/05/23 - 21:38:04 | 200 | 1.092334ms | 127.0.0.1 | GET "/api/tags"
DEBUG:urllib3.connectionpool:http://127.0.0.1:11435 "GET /api/tags HTTP/1.1" 200 377
DEBUG:alpaca.window:Verifying if image can be used
DEBUG:alpaca.window:Verifying if image can be used
DEBUG:alpaca.window:Verifying if image can be used
DEBUG:alpaca.window:Verifying if image can be used
DEBUG:alpaca.window:Verifying if image can be used
Hmmm. Once you finish the logging thing I will check that out
I suggest logging app events to standard output. Would a PR for this be welcome?