Skip to content

Commit efe4aca

Browse files
ampagentIsaac Miller
andcommitted
Use set_lm in ReAnchor bound-client test
Amp-Thread-ID: https://ampcode.com/threads/T-01a0bf8d-a1dd-7603-906c-ea06c46ff7f7 Co-authored-by: Isaac Miller <isaac@cmpnd.ai>
1 parent 0f53eda commit efe4aca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tests/teleprompt/reanchor/test_reanchor.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ def items_metric(gold, pred, trace=None):
116116
def test_the_program_keeps_a_bound_client_and_callbacks(system_one):
117117
client = system_one(leaning)
118118
dspy.configure(lm=None)
119-
student = dspy.Predict(Sig, lm=client, callbacks=[])
119+
student = dspy.Predict(Sig, callbacks=[])
120+
student.set_lm(client)
120121
program = ReAnchor(metric, num_threads=2).compile(student, trainset=examples())
121122
assert program.lm is not None and program(pair="same").match is True
122123

0 commit comments

Comments
 (0)