@Two drivers
The config has OpenAI (gpt-4o-mini by default) and a local one (mistral by default), each with a batch size and a max concurrency.
<!-- A Laravel package to seed a database with AI generated data. -->
This is a Laravel package to fill a database with test data written by an AI instead of random words. For now it is only the base, the generation part is not written yet.
What exists: the service provider, a facade (AiSeeder), a config file, and the classes that read this config. In the config you choose a driver. I put two: OpenAI (gpt-4o-mini by default) and a local one that points to a local server (mistral by default). For each one you can set the batch size and how many requests run at the same time.
For the models, there is an abstract class called AiModelDefinition. For each model you describe its fields and, if needed, a context text to help the AI understand what the data should look like. A Faker instance is also available in each definition.
On the tooling side, Pint checks the code style and PHPUnit runs on GitHub Actions. The only test is a placeholder for now, and the namespace is still the Vendor placeholder.
The config has OpenAI (gpt-4o-mini by default) and a local one (mistral by default), each with a batch size and a max concurrency.
An abstract class where you describe the fields of a model and a context text for the AI.
Pint for the code style and PHPUnit on GitHub Actions.