textgrad
textgrad copied to clipboard
Cache bug when using azure openai
While a new cache_path
is created in __init__
of AzureChatOpenAI
, it is not successfully passed to the __init__
of parent class ChatOpenAI
in this line, since ChatOpenAI
's __init__
does not use cache_path
.
As a result, all azure models will use the same cache file, which lead to incorrect results when switching between models.