openai-python icon indicating copy to clipboard operation
openai-python copied to clipboard

openai.FineTuningJob.list_events doesn't support api_base

Open 00arthur00 opened this issue 3 years ago • 2 comments

Describe the bug

when query new fine tune events with openai: openai.FineTuningJob.list_events(id="ft-abc123", limit=10,api_key="xxxx",api_base="xxxx")

the http request doesn't go to api_base domain, instead go to the offical api site.

To Reproduce

  1. set up a nginx proxy for openai official api
  2. query fine tune job event with openai.FineTuningJob.list_events(id="ft-abc123", limit=10,api_key="xxxx",api_base="xxxx")
  3. http requests go to offical api site instead the nginx proxy.

Code snippets

openai.FineTuningJob.list_events(id="ft-abc123", limit=10,api_key="xxxx",api_base="xxxx")

OS

linux

Python version

python 3.10

Library version

openai-python v0.28.0

00arthur00 avatar Sep 13 '23 05:09 00arthur00

related pr: https://github.com/openai/openai-python/pull/612

00arthur00 avatar Sep 13 '23 06:09 00arthur00

Looks like the corresponding PR was merged!

RobertCraigie avatar Oct 18 '23 10:10 RobertCraigie