Repository: tatsu-lab/alpaca_eval
Issue: AttributeError: module 'openai' has no attribute 'api_base'. Did you mean: 'api_type'?
Root cause: External Dependency Breakage

when i use `alpaca_eval --model_outputs 'example/outputs.json'`
i meet the error with openai  version 1.1.1

how can i fix it! @winglian @zfang @jondurbin 

INFO:root:Evaluating the example outputs.
INFO:root:Creating the annotator from `alpaca_eval_gpt4`.
Traceback (most recent call last):
  File "/home/zhoudong/miniconda3/envs/chat/bin/alpaca_eval", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/zhoudong/miniconda3/envs/chat/lib/python3.11/site-packages/alpaca_eval/main.py", line 542, in main
    fire.Fire(evaluate)
  File "/home/zhoudong/miniconda3/envs/chat/lib/python3.11/site-packages/fire/core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zhoudong/miniconda3/envs/chat/lib/python3.11/site-packages/fire/core.py", line 475, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
                                ^^^^^^^^^^^^^^^^^^^^
  File "/home/zhoudong/miniconda3/envs/chat/lib/python3.11/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zhoudong/miniconda3/envs/chat/lib/python3.11/site-packages/alpaca_eval/main.py", line 131, in evaluate
    annotator = Annotator(annotators_config=annotators_config, **annotator_kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zhoudong/miniconda3/envs/chat/lib/python3.11/site-packages/alpaca_eval/annotators/pairwise_evaluator.py", line 51, in __init__
    super().__init__(*args, **kwargs, primary_keys=self.input_keys + self.output_keys)
  File "/home/zhoudong/miniconda3/envs/chat/lib/python3.11/site-packages/alpaca_eval/annotators/base.py", line 389, in __init__
    super().__init__(*args, **kwargs)
  File "/home/zhoudong/miniconda3/envs/chat/lib/python3.11/site-packages/alpaca_eval/annotators/base.py", line 104, in __init__
    self.annotators = self._initialize_annotators()
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zhoudong/miniconda3/envs/chat/lib/python3.11/site-packages/alpaca_eval/annotators/base.py", line 197, in _initialize_annotators
    return {
           ^
  File "/home/zhoudong/miniconda3/envs/chat/lib/python3.11/site-packages/alpaca_eval/annotators/base.py", line 198, in <dictcomp>
    name: self.SingleAnnotator(
          ^^^^^^^^^^^^^^^^^^^^^
  File "/home/zhoudong/miniconda3/envs/chat/lib/python3.11/site-packages/alpaca_eval/annotators/pairwise_evaluator.py", line 359, in __init__
    super().__init__(
  File "/home/zhoudong/miniconda3/envs/chat/lib/python3.11/site-packages/alpaca_eval/annotators/base.py", line 518, in __init__
    self.fn_completions = get_fn_completions(fn_completions)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zhoudong/miniconda3/envs/chat/lib/python3.11/site-packages/alpaca_eval/decoders/__init__.py", line 22, in get_fn_completions
    from .openai import openai_completions
  File "/home/zhoudong/miniconda3/envs/chat/lib/python3.11/site-packages/alpaca_eval/decoders/openai.py", line 20, in <module>
    DEFAULT_OPENAI_API_BASE = openai.api_base
                              ^^^^^^^^^^^^^^^
AttributeError: module 'openai' has no attribute 'api_base'. Did you mean: 'api_type'?

i get my error .
NO pip install alpaca-eval 
YES git clone ==> pip install -r requirements.txt ==> pip install -e . 
then you will fix it 

can you try to update `pip install -U alpaca-eval`