test: verify sampling parameters through the full governance stack
This commit is contained in:
@@ -381,9 +381,7 @@ class TestExtraBodyStripped:
|
||||
会显示这次调用带了 temperature=0——那是数据造假,比参数失效更坏。
|
||||
"""
|
||||
rec = _MemoryRecorder()
|
||||
client, _ = _embed_client(
|
||||
[_src(extra_body={"temperature": 0})], ["ok"], telemetry=rec
|
||||
)
|
||||
client, _ = _embed_client([_src(extra_body={"temperature": 0})], ["ok"], telemetry=rec)
|
||||
await client.embed(["hi"])
|
||||
assert rec.rows[0]["sampling"] is None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user