datana-gmbh / mongodb-ai
Use AI in MongoDB
1.1.1
2023-11-08 19:53 UTC
Requires
- php: >=8.2
- mongodb/mongodb: ^1.15
- nyholm/psr7: ^1.8
- openai-php/client: ^0.7.8
- oskarstark/trimmed-non-empty-string: ^1.0
- psr/log: ^1.1 || ^2.0 || ^3.0
- symfony/http-client: ^4.4 || ^5.1 || ^6.0
- thecodingmachine/safe: ^1.0 || ^2.0
- webmozart/assert: ^1.7
Requires (Dev)
This package is auto-updated.
Last update: 2024-12-16 08:38:57 UTC
README
Usage
Installation
composer require datana-gmbh/mongodb-ai
Setup
use Datana\Datapool\Api\MongoDBAI; $client = new MongoDBAI( baseUri: 'https://api.datapool...', username: 'my-username', password: '******', timeout: 10 // optional ); // you can now request any endpoint which needs authentication $client->request('GET', '/api/something', $options);