发布

  • [OPIK-6384] [FE] fix: update outdated Optimization Studio code snippets (#6910)

    frostbyte_neo 发布于 2026-05-29 11:30:00 +00:00

    The "Start optimization run" dialog's hardcoded MetaPromptOptimizer and
    GepaOptimizer snippets were written for the pre-v3 SDK API and fail at
    construction time with TypeError on current opik_optimizer:

    • MetaPromptOptimizer: dropped reasoning_model + rounds, renamed
      num_prompts_per_round -> prompts_per_round, moved temperature into
      model_parameters.
    • GepaOptimizer: dropped reflection_model, moved temperature + max_tokens
      into model_parameters.

    Fixed in both v1 and v2 AddOptimizationDialog. Also aligned the matching
    doc snippets with the current SDK in both the live docs-v2 tree and the
    legacy docs/ tree (gepa_optimizer.mdx, tool_optimization.mdx,
    best_practices/prompt_engineering.mdx) and corrected the stale parameter
    entries in optimizer_parameters_guide.mdx. The auto-generated
    reference.mdx / api_reference.mdx are intentionally untouched since they
    regenerate from the SDK via scripts/generate_fern_docs.py.

    Co-authored-by: Claude Opus 4.7 noreply@anthropic.com

    下载附件