theodo-group / LLPhant

LLPhant - A comprehensive PHP Generative AI Framework using OpenAI GPT 4. Inspired by Langchain
MIT License
811 stars 81 forks source link

Microsoft Azure #177

Open olimarferraz opened 2 months ago

olimarferraz commented 2 months ago

 How do I integrate this package with my Azure environment? Is there an easy way to use the custom endpoint for my model?

I am using LLPhant in a Laravel project and so far everything is going very well, but due to data isolation reasons, I need to work with the model hosted in our Azure Cloud.

MaximeThoonsen commented 2 months ago

Hey @olimarferraz !

it should be easy because you can pass any client you want. see the mistral class for one example.

$clientFactory = new Factory();

$config->client = $clientFactory
                ->withApiKey($apiKey)
                ->withBaseUri(self::BASE_URL)
                ->make();

Does it help you?