metadata = null
()
| 66 | |
| 67 | |
| 68 | def test_null_metadata(): |
| 69 | """metadata = null""" |
| 70 | data = { |
| 71 | "stream": False, |
| 72 | "messages": [{"role": "user", "content": "介绍下你自己"}], |
| 73 | "max_tokens": 10, |
| 74 | "metadata": None, |
| 75 | } |
| 76 | payload = build_request_payload(TEMPLATE, data) |
| 77 | resp = send_request(URL, payload).json() |
| 78 | assert "error" not in resp, "metadata=null 应被容忍而不是报错" |
| 79 | |
| 80 | |
| 81 | def test_top_p_exceed_1(): |
nothing calls this directly
no test coverage detected