You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to adjust timeout for contextual completions? #17
Im moving my pgpt requests to a python api but unlike typescript I cannot change the default timeout setting, whereas in Typescript I could simply pass const requestOptions = { timeoutInSeconds: 600, maxRetries: 1 }; with my request. This doesn't seem to be an option here.
Now ive switched over to Python and seemingly the only way to change the values is to enter the docker container and edit resources/contextual_completions/client.py manually.
@kparnis3
sorry for late reply, im running my api in docker so the workaround that has worked for me was to copy the original client.py, edit it and mount it as a volume in docker-compose.yaml to override the default settings. Unfortunately i couldn't get anything else to work.
it looks like this inside my docker-compose - ./client.py:/usr/local/lib/python3.12/site-packages/pgpt_python/resources/contextual_completions/client.py
Activity
kparnis3 commentedon May 16, 2025
Any updates on this?, running into this issue too.
Just-enki commentedon May 19, 2025
@kparnis3
sorry for late reply, im running my api in docker so the workaround that has worked for me was to copy the original client.py, edit it and mount it as a volume in docker-compose.yaml to override the default settings. Unfortunately i couldn't get anything else to work.
it looks like this inside my docker-compose
- ./client.py:/usr/local/lib/python3.12/site-packages/pgpt_python/resources/contextual_completions/client.py