Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package Request - openai #3588

Open
RighiAmaral opened this issue Feb 15, 2023 · 10 comments 路 May be fixed by #4539
Open

Package Request - openai #3588

RighiAmaral opened this issue Feb 15, 2023 · 10 comments 路 May be fixed by #4539

Comments

@RighiAmaral
Copy link

馃悕 Package Request

  • Package Name and Version: openai / latest:
  • Package URL: https://pypi.org/project/openai/
  • Package Dependencies that needs to be resolved first:
    • aiohttp
      • aiosignal
        • frozenlist
      • async-timeout
      • attrs
      • charset-normalizer
      • frozenlist
      • multidict
      • yarl
        • idna
        • multidict
    • requests
      • certifi
      • charset-normalizer
      • idna
      • urllib3
    • tqdm
      • colorama
@rth
Copy link
Member

rth commented Mar 27, 2023

yarl and idna will be added with #3703

Right now the installation would fail with,

>>> await micropip.install('openai', keep_going=True)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/lib/python3.11/site-packages/micropip/_micropip.py", line 580, in install
    raise ValueError(
ValueError: Can't find a pure Python 3 wheel for: 'multidict<5.0,>=4.5'

because we package multidict 6.0 and it's pulling this old version because it installs aiohttp 3.6.2 from 2019 as that's the last version that has a pure python wheel (and they switched to C extensions since).

So we would indeed also need to package aiohttp but then it's a bit unfortunate to also have to package all those pure Python packages it depends on. Maybe we need to rethink how we handle such cases.

@ryanking13 ryanking13 mentioned this issue Mar 28, 2023
ryanking13 pushed a commit that referenced this issue Mar 28, 2023
This adds the yarl package which is a requirement (with some Cython code) for the openai client library (#3588). 
idna is a Pure python dependency of yarl.
@ht55ght55
Copy link

bump

@mgmorcos
Copy link

馃憤

@maksiksking
Copy link

bump
OpenAI's API tools are incredibly relevant right now with AI becoming more and more prominent, it's currently only possible to use GPT-3 (quite bad old models) without this module.

This would make developing ChatGPT apps way easier and is definitely in high demand.

@pritam-dey3
Copy link

bump. This will be helpful to build more applications that interact with chatGPT that runs entirely on client side. Since the applications mostly send requests back forth with OpenAI, it doesn't make sense to route the same requests through backend. True, it can be done with javascript, but we want to use Python.

@praz981
Copy link

praz981 commented Sep 6, 2023

bump

4 similar comments
@atbe
Copy link

atbe commented Sep 21, 2023

bump

@bbaranow
Copy link

bbaranow commented Nov 5, 2023

bump

@subbu963
Copy link

bump

@avielfedida
Copy link

bump

@hoodmane hoodmane linked a pull request Feb 22, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.