DSPy: The framework for programming—not prompting—language models
Python
fix: updated docstrings and log file
KCaverlyfb63c1b20c69
diff --git a/dsp/modules/azure_openai.py b/dsp/modules/azure_openai.pyindex 65b73186c..4b3a4c592 100644--- a/dsp/modules/azure_openai.py+++ b/dsp/modules/azure_openai.py@@ -4,7 +4,7 @@ import logginglogging.basicConfig(level=logging.INFO,format="%(message)s",- handlers=[logging.FileHandler("openai_usage.log")],+ handlers=[logging.FileHandler("azure_openai_usage.log")],)import functools@@ -131,7 +131,7 @@ class AzureOpenAI(LM):return self.clientdef log_usage(self, response):- """Log the total tokens from the OpenAI API response."""+ """Log the total tokens from the Azure OpenAI API response."""usage_data = response.get("usage")if usage_data:total_tokens = usage_data.get("total_tokens")