This cl changes the rank_gpt completion call format from the legacy format that is no longer supported in openai>=1.0.0 to its new version based on the example in https://github.com/openai/openai-python.
openai minimum version is already upgraded in https://github.com/castorini/rank_llm/pull/44
TESTED=ran the pipeline with dl19 and gpt3.5 e2e.
This cl changes the rank_gpt completion call format from the legacy format that is no longer supported in openai>=1.0.0 to its new version based on the example in https://github.com/openai/openai-python. openai minimum version is already upgraded in https://github.com/castorini/rank_llm/pull/44 TESTED=ran the pipeline with dl19 and gpt3.5 e2e.