Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

Add comments to the comment

dilara7ba3d013821e
diff --git a/dspy/clients/lm.py b/dspy/clients/lm.py
index 937fb8ffa..f2949372a 100644
--- a/dspy/clients/lm.py
+++ b/dspy/clients/lm.py
@@ -45,7 +45,8 @@ class LM:
self.kwargs = dict(temperature=temperature, max_tokens=max_tokens, **kwargs)
self.history = []
- # TODO: This is error prone!
+ # TODO: Arbitrary model strings could include the substring "o1-". We
+ # should find a more robust way to check for the "o1-" family models.
if "o1-" in model:
assert (
max_tokens >= 5000 and temperature == 1.0