castorini / rank_llm

RankLLM is a Python toolkit for reproducible information retrieval research using rerankers, with a focus on listwise reranking.
http://rankllm.ai
Apache License 2.0
312 stars 39 forks source link

Fix openai integration #46

Closed sahel-sh closed 8 months ago

sahel-sh commented 8 months ago

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.