MCPcopy
hub / github.com/stanfordnlp/dspy / test_basic_dspy_settings

Function test_basic_dspy_settings

tests/utils/test_settings.py:13–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12
13def test_basic_dspy_settings():
14 dspy.configure(lm=dspy.LM("openai/gpt-4o"), adapter=dspy.JSONAdapter(), callbacks=[lambda x: x])
15 assert dspy.settings.lm.model == "openai/gpt-4o"
16 assert isinstance(dspy.settings.adapter, dspy.JSONAdapter)
17 assert len(dspy.settings.callbacks) == 1
18
19
20def test_forbid_configure_call_in_child_thread():

Callers

nothing calls this directly

Calls 1

configureMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…