Yaakov Belch
Yaakov Belch
According to [this response](https://github.com/openai/openai-python/issues/324#issuecomment-1484644590), there is a non-documented feature: Many API features accept named arguments such as: import openai openai.ChatCompletion.create(model=gpt_model_config.model_engine, api_key=SECRET api_base=BASE, api_type=TYPE, api_version=VERSION, ...)
When trying to parallelize computations with python threads, be aware of the [Global Interpreter Lock (GIL)](https://docs.python.org/3/c-api/init.html#thread-state-and-the-global-interpreter-lock): The effect of this lock is that, at any time, only one python thread...
Here is a solution that works with the current `parallelshell`: ``` parallelshell your_programs 'perl -we "sleep 10; exit 2;"' ``` This adds to your list one process that waits 10...