DSPy: The framework for programming—not prompting—language models
Python
Add dspy.configure_cache to api doc (#8295)
Chen Qian8aa8b9cc97d0
diff --git a/docs/docs/api/utils/configure_cache.md b/docs/docs/api/utils/configure_cache.mdnew file mode 100644index 000000000..5562c78a3--- /dev/null+++ b/docs/docs/api/utils/configure_cache.md@@ -0,0 +1,16 @@+# dspy.configure_cache+++<!-- START_API_REF -->+::: dspy.configure_cache+ handler: python+ options:+ show_source: true+ show_root_heading: true+ heading_level: 2+ docstring_style: google+ show_root_full_path: true+ show_object_full_path: false+ separate_signature: false+ inherited_members: true+<!-- END_API_REF -->diff --git a/docs/mkdocs.yml b/docs/mkdocs.ymlindex 2a741194d..1073563f4 100644--- a/docs/mkdocs.yml+++ b/docs/mkdocs.yml@@ -127,6 +127,7 @@ nav:- StatusMessageProvider: api/utils/StatusMessageProvider.md- StreamListener: api/utils/StreamListener.md- asyncify: api/utils/asyncify.md+ - configure_cache: api/utils/configure_cache.md- disable_litellm_logging: api/utils/disable_litellm_logging.md- disable_logging: api/utils/disable_logging.md- enable_litellm_logging: api/utils/enable_litellm_logging.mddiff --git a/docs/scripts/generate_api_docs.py b/docs/scripts/generate_api_docs.pyindex 3b218972c..62317fa85 100644--- a/docs/scripts/generate_api_docs.py+++ b/docs/scripts/generate_api_docs.py@@ -55,6 +55,7 @@ API_MAPPING = {dspy.disable_logging,dspy.enable_litellm_logging,dspy.disable_litellm_logging,+ dspy.configure_cache,dspy.streaming.StatusMessageProvider,dspy.streaming.StatusMessage,dspy.streaming.StreamListener,