mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-17 09:34:48 +00:00
test(opencode): assert the generated session id is a v4 uuid
This commit is contained in:
parent
7c68415a62
commit
683e66334f
1 changed files with 1 additions and 1 deletions
|
|
@ -360,7 +360,7 @@ class TestMockedCompletion:
|
|||
api_key="sk-fake",
|
||||
)
|
||||
|
||||
uuid.UUID(respx_mock.calls[0].request.headers["x-opencode-session"])
|
||||
assert uuid.UUID(respx_mock.calls[0].request.headers["x-opencode-session"]).version == 4
|
||||
|
||||
def test_zen_chat_sends_no_session_header(self, respx_mock, monkeypatch):
|
||||
"""Only the Go surface requires the header."""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue