janekb04/py2gpt
Convert Python code into JSON consumable by OpenAI's function API.
This tool helps AI application developers define functions that large language models (LLMs) can call. You provide your functions as standard Python code, and it generates the specific JSON format required by the OpenAI Function API. This is for developers building applications that use OpenAI's GPT models to interact with external tools or data.
No commits in the last 6 months.
Use this if you are a developer building an application that leverages OpenAI's function calling capabilities and want to define your functions in Python instead of manually writing JSON Schema.
Not ideal if you are not using OpenAI's Function API or if you prefer to define your function schemas directly in JSON.
Stars
29
Forks
6
Language
Python
License
MIT
Category
Last pushed
Jun 26, 2023
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/janekb04/py2gpt"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
SamurAIGPT/Open-Custom-GPT
Create Custom GPT and add/embed on your site using Assistants api
gptlint/gptlint
A linter with superpowers! 🔥 Use LLMs to enforce best practices across your codebase.
lmbelo/pyscripter
Pyscripter is a feature-rich but lightweight Python IDE
lehner/gpt
A Python toolkit for lattice field theory, quantum computing, and machine learning
nicepkg/gpt-runner
Conversations with your files! Manage and run your AI presets!