Simplify OpenAI chat completions api using type hints

I made a tiny personal project over the weekend I wanted to share. I was using the openai api and found myself annoyed that I needed to manually define json schema and then parse the output myself. Same for tool definitions.

This project allows you to do it with types similar to FastApi / Typer.

I only implemented the sync endpoints before running out of weekend time (it seemed so simple before starting…), but can get to the async stuff if there is interest (or a contributor).

Let me know if you have ideas or suggestions. The goal is to keep the project super scoped. This isn’t supposed to be an “abstraction” or “framework”, just some sugar to get type hinting and add some methods to string along requests better.

You can find it on github at eidolon-ai/typedai