[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#1060034: ITP: python-openai -- OpenAI Python API library




On 1/5/24 03:48, Ansgar wrote:
On Thu, 2024-01-04 at 21:30 -0500, Mo Zhou wrote:
Dependency of DebGPT. Will be maintained by deep learning team.
It will go to the contrib section based on policy section 2.2.2,
because this API client requires either
(1) paied access to the proprietary backend
(2) compatible open-source backend implementations are not yet
      available in the archive.

I'm confused. Will this package have a "Depends: some-proprietary-
openai-thing"? Can't it talk to a web service providing the API?
No. All the dependencies are: python3-anyio,python3-distro,
python3-httpx,python3-pydantic,python3-sniffio,python3-tqdm,
python3-typing-extensions,python3:any.
Can be satisfied using packages from main section.

That said, this package does not work at all without (1) paid
access token from OpenAI (2) open-source alternative

https://github.com/lm-sys/FastChat/blob/main/docs/openai_api.md

One just need to export OPENAI_BASE_URL or set it in program as
  openai.base_url = '...'
to switch the server to connect.

It is a client API package, and its compatible
Does OpenAI even offer this "some-proprietary-openai-thing" package to
the general public?
No. They provide nothing else than this API client.


Reply to: