Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

update with self.history

Arnav Singhviedadecd989d9
diff --git a/docs/docs/deep-dive/language_model_clients/custom-lm-client.mdx b/docs/docs/deep-dive/language_model_clients/custom-lm-client.mdx
index edef34da3..b27f2cf20 100644
--- a/docs/docs/deep-dive/language_model_clients/custom-lm-client.mdx
+++ b/docs/docs/deep-dive/language_model_clients/custom-lm-client.mdx
@@ -52,6 +52,7 @@ def __init__(model, api_key):
self.model = model
self.api_key = api_key
self.provider = "default"
+ self.history = []
self.base_url = "https://api.anthropic.com/v1/messages"
```