LLPhant icon indicating copy to clipboard operation
LLPhant copied to clipboard

Microsoft Azure

Open olimarferraz opened this issue 1 year ago • 3 comments

 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.

olimarferraz avatar Jul 18 '24 18:07 olimarferraz

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?

MaximeThoonsen avatar Jul 28 '24 15:07 MaximeThoonsen

Hi, I think this doesn't work with the embedded models. Any suggestions on how to deal with it ?

Thanks

stef157 avatar Nov 03 '24 12:11 stef157

@stef157 @olimarferraz did you get this working for both chat and embeddings? Looks like setting OPENAI_BASE_URL in the ENV file should make this work?

joostvanhoof avatar Jan 03 '25 08:01 joostvanhoof