Live data from Hacker News

Show HN: Python package for interfacing with ChatGPT with minimized complexity

github.com

21–30 of 36 posts

Re: Show HN: Python package for interfacing with ChatGPT with minimized complexity

#21
post #13
post #9

Nice! Totally agree with the project goals, it seems too many other packages are created by people who are researchers (or enthusiasts) first and software developers second, and it shows. I see you're using Pydantic. I've recently been playing with using pydantic to implement chatgpt functions, making it a bit easier to define functions (tools) with more control over the attributes, like this: class SearchWeb(pydanti…

Ah, I see I've been ninja'd by about 17 hours: https://github.com/minimaxir/simpleaichat/releases/tag/v0.2.... :-D

I've spent a lot of time experimenting with schema: https://github.com/minimaxir/simpleaichat/blob/main/examples...

Re: Show HN: Python package for interfacing with ChatGPT with minimized complexity

#23
post #17

Are we anywhere close to being able to give a whole codebase to GPT-4 and ask various things about it?

This of course depends entirely on how big the codebase is. But the short answer is "yes".

Do you have any links / tools for this?

Re: Show HN: Python package for interfacing with ChatGPT with minimized complexity

#24
post #12

Since this is async, can it automatically handle provided rate limits and batch queries appropriately? Seems like everyone has to roll their own on this and it’s much nicer to have smooth tooling for it.

The underlying library for both sync and async is httpx (https://www.python-httpx.org/) which may be limited from the HTTP Client perspective but it may be possible to add rate limiting at a Session level.

Re: Show HN: Python package for interfacing with ChatGPT with minimized complexity

#25
post #23

Earlier quoted context omitted.

This of course depends entirely on how big the codebase is. But the short answer is "yes".

Do you have any links / tools for this?

Here's a couple (I apologize if some of these are already obvious to you):

  - https://python.langchain.com/docs/use_cases/code/code-analysis-deeplake
  - https://twitter.com/jerryjliu0/status/1636728577524916225?s=20 (GPT repo loader)
FWIW there's tons of tools you could use to do this. GitHub Copilot is pretty close to being a comprehensive solution as well.

Re: Show HN: Python package for interfacing with ChatGPT with minimized complexity

#26
post #23

Earlier quoted context omitted.

This of course depends entirely on how big the codebase is. But the short answer is "yes".

Do you have any links / tools for this?

I wrote a simple ChatGPT plugin that exposes files within a local directory on my computer to ChatGPT [0]. It's been quite helpful for me, both for working with codebases as well as other material (supports docx and pdf as well). It does require plugin developer access to run, though.

[0] https://github.com/samrawal/chatgpt-localfiles

Re: Show HN: Python package for interfacing with ChatGPT with minimized complexity

#27
post #17

Are we anywhere close to being able to give a whole codebase to GPT-4 and ask various things about it?

My open source CLI tool can do this, as well as make changes to the code. Here's a chat transcript that shows how you can use it to explore and then modify a public github repo for a js game:

https://aider.chat/examples/2048-game.html

Here a link to aider with more info:

https://github.com/paul-gauthier/aider

Re: Show HN: Python package for interfacing with ChatGPT with minimized complexity

#29

Is interfacting with the GPT-4 API acting as if you are the ChatGPT UI against terms of service? I was under the impression it was and they had a bunch of methods to protect against this. They want you using ChatGPT for $20/mo and then paying for GPT-4 API usage separately per token from what I can tell.

You have to have an approved GPT-4 API key to use model="gpt-4". Nothing in this package circumvents it, which is what the free GPT-4 apps were doing.

I don't have a GPT-4 API key, but I can use GPT-4 in the OpenAI official ChatGPT UI, right?

Re: Show HN: Python package for interfacing with ChatGPT with minimized complexity

#30

Earlier quoted context omitted.

You have to have an approved GPT-4 API key to use model="gpt-4". Nothing in this package circumvents it, which is what the free GPT-4 apps were doing.

I don't have a GPT-4 API key, but I can use GPT-4 in the OpenAI official ChatGPT UI, right?

The ChatGPT UI is not the API.
Post reply on HN