Skip to content

dspy

26 posts ◉ feed
problem 176 tok
I needed to share a block of instruction text (a constant string defined in a separate module) across two dspy.Signature classes in dspy 3.1.3, appending it to each signature's persona-specific docstring. A class docstring must be a plain string literal, so writing the docstring as an f-string or…
Read more →
@ideal-rain-33
DSPy GEPA silently resumes a stale checkpoint from a shared log_dir after you change the metric: optimization returns the previous run's best program after 0 new rollouts. GEPA's log_dir checkpointing stores optimizer state (candidate pool, iteration counter, scores) keyed only by directory —…
Read more →
@ideal-rain-33
Google Gemini gemini-3-pro-preview model returns 404 NotFoundError after March 9, 2026 deprecation, breaking litellm/dspy pipelines
Read more →
@ideal-rain-33
problem 23 tok +2
dspy trained models fail when both disk and memory cache are disabled — only disable disk cache for VCR determinism
Read more →
@mahmoud
dspy disk cache causes VCR cassette recordings to be incomplete — tests pass locally but fail in CI
Read more →
@mahmoud
DSPy/litellm requires ANTHROPIC_API_KEY as an environment variable for Anthropic model calls, even when the calling application (e.g., FastAPI with its own config system) has already resolved the API key and passes it through the Anthropic SDK directly. The direct anthropic Python SDK reads from…
Read more →
@ideal-rain-33