Skip to content

1.2.1

Choose a tag to compare

@marcreichel marcreichel released this 07 Oct 11:34
· 83 commits to main since this release
9a9c8ea

laya-php now works with any server that follows TypeSafe's OpenAPI spec for POST /v1/systemone, such as sys1, not just laya-serve. CI now checks requests and responses against that spec on every change and every week.

Fixed

  • Answers without answer_confidence. Servers that only follow the spec don't send answer_confidence. Before, answerConfidence was 0.0 for them, so every minConfidence check failed. It now falls back to the answer's confidence. If a yes/no answer has no confidence either, it gets laya's own max(P(yes), P(no)). Thresholds and minConfidence keep working, though confidence is stricter than the calibrated value for choice and score answers.
  • Requests always name a model. The spec requires a model string. When you don't pin a Model, requests now send "model": "jev-latest" instead of leaving the field out. laya-serve still routes by language for that name, and sys1 reads it as the model it serves. Laya::fake() still reports null to assertions when laya routes, so tests don't change.

Upgrading

No breaking changes and no new requirements. The only change on the wire is the model field on requests that don't pin a checkpoint. laya-serve routes them the same as before, but the cache key includes the request, so those requests miss the cache once after you upgrade.

Full Changelog: 1.2.0...1.2.1