textgrad icon indicating copy to clipboard operation
textgrad copied to clipboard

Cache bug when using azure openai

Open chinganc opened this issue 4 months ago • 0 comments

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.

chinganc avatar Oct 01 '24 19:10 chinganc