PHP code example of byfareska / modelflow-azure-openai-adapter
1. Go to this page and download the library: Download byfareska/modelflow-azure-openai-adapter library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
byfareska / modelflow-azure-openai-adapter example snippets
$adapter = new \ModelflowAi\OpenaiAdapter\Embeddings\OpenaiEmbeddingAdapter(
AzureOpenai::client(
'https://anexampleproject.openai.azure.com/openai/deployments/thedeployment', //yours endpoint
'theapikey' // yours class
),
'text-embedding-3-large' //the model that you want to use
);