Open yanivnaor opened 1 year ago
The bug Error when trying to instantiate the MSALOpenAI class: AttributeError: 'MSALOpenAI' object has no attribute '_rest_headers'
To Reproduce
guidance.llm = guidance.llms.MSALOpenAI(model="dev-text-davinci-003", authority="SOME_AUTHORITY", endpoint="SOME_ENDPOINT", scopes=["api://SOME_GUID/access"], client_id="SOME_CLIENT_ID")
The bug seems to be the super().init() call in MSALOpenAI is missing the argument rest_call=True. rest_call defaults to False, which means self._rest_headers is None, which causes the error.
System info (please complete the following information):
0.0.61
There are more related bugs in _rest_call() func itself. for example, self.endpoint no longer exists and self.token is never called anymore
The bug Error when trying to instantiate the MSALOpenAI class: AttributeError: 'MSALOpenAI' object has no attribute '_rest_headers'
To Reproduce
The bug seems to be the super().init() call in MSALOpenAI is missing the argument rest_call=True. rest_call defaults to False, which means self._rest_headers is None, which causes the error.
System info (please complete the following information):
0.0.61
):