csinva / imodelsX

Scikit-learn friendly library to interpret, and prompt-engineer text datasets using large language models.
https://csinva.io/imodelsX/
MIT License
161 stars 26 forks source link

Azure OpenAI's endpoint may not exist anymore? #15

Open mvdoc opened 1 month ago

mvdoc commented 1 month ago

The endpoint https://healthcare-ai.openai.azure.com/ doesn't seem to exist anymore, so the code fails when using GPT-4 models. I had to make local changes and use OpenAI's endpoint, but I'm not sure how you want to handle this, so I haven't sent a PR.

https://github.com/csinva/imodelsX/blob/master/imodelsx/llm.py#L124-L128

csinva commented 1 month ago

Ah true, thanks for pointing this out -- I'll maybe set up an option for users to pass in their own azure/openai endpoint instead of using this older one