发布

  • [NA] [BE] fix: populate opik_prompts.name on /experiments/execute (#6895)

    frostbyte_neo 发布于 2026-05-28 11:16:34 +00:00

    • [NA] [BE] fix: populate opik_prompts.name on experiments/execute

    The /experiments/execute endpoint resolves prompt versions in bulk but only
    read promptName off the incoming PromptVersionLink. The FE flow sends links
    with just {id, prompt_id}, so the persisted opik_prompts[].name on traces was
    null. Bulk-fetch PromptVersionInfo alongside the version data via Mono.zip
    and fall back to the looked-up name when the link omits it; SDK callers that
    already supply promptName keep working unchanged.

    Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

    • [NA] [BE] fix: tolerate partial failure of version-info lookup in opik_prompts

    Wrap getVersionsInfoByVersionsIds in its own onErrorResume so a name-lookup
    failure degrades to entries with null name rather than dropping the entire
    opik_prompts array. findVersionByIds remains the hard dependency; only the
    version data is required to build entries.

    Addresses baz-reviewer feedback on #6895.

    Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com


    Co-authored-by: Claude Opus 4.7 (1M context) noreply@anthropic.com

    下载附件