Hacker News new | ask | show | jobs
by cleverbit 900 days ago
Hey folks, just dropping in to share a python tool I put together for working with the OpenAI API. It’s a command line tool that helps with managing assistants, threads, and files.

This was an early attempt at learning python for me, and it was really fun working with GPT to help outline what I wanted the tool to do. It was a pretty big learning curve — I have loads of experience in other programming languages, but less in Python, so it was so cool to just dive right in.

Here’s what it can do:

- List Assistants: See all your assistants ids quickly.

- Handle Files: List, upload, and delete files easily.

- Smart Thread Tracking: I've added a key feature to the tool – it now automatically keeps track of any thread IDs created. This is especially handy since, as some of you might know, OpenAI doesn't offer a native 'List Threads' feature due to privacy concerns. Threads in OpenAI are tied to organizations, and listing all threads could potentially expose private conversations.

One heads-up: You’ll need to set up your Python environment to use it, but the OpenAI docs cover that part.

Thought this might make things a bit easier for anyone juggling with the API. Give it a whirl and let me know how it goes!