microsoft / lida

Automatic Generation of Visualizations and Infographics using Large Language Models
https://microsoft.github.io/lida/
MIT License
2.57k stars 260 forks source link

error while using AzureChatOpenAI( ) #84

Closed himanshu-nakrani closed 5 months ago

himanshu-nakrani commented 5 months ago

I have deployed my gpt 3.5 turbo model into azure, and i want to use that as llm. but its giving error in summarize method.

File "C:\Users\hnakrani\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\lida\components\manager.py", line 60, in check_textgen config.provider = self.text_gen.provider or "openai" ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'AzureChatOpenAI' object has no attribute 'provider'

image
himanshu-nakrani commented 5 months ago

This error is Solved, in in llmx call (OpenAITextGenerator) we have to pass our "deployment name" in model parameter.