Files
DeepTutor/tests
Bingxi Zhao (Frank) fc9cc75736 fix(embedding): omit encoding_format by default for OpenAI-compatible gateways
#652 added a guard so the gateway adapter only sends encoding_format when
set, but it was a no-op: EmbeddingRequest.encoding_format defaulted to the
truthy "float", so the guard always fired and the param was still posted —
leaving the #651 HTTP 400 from gateways like SiliconFlow intact.

Fix the root cause: default encoding_format to None. The gateway adapter now
omits it unless a caller explicitly opts in, while the official OpenAI SDK
path keeps pinning "float" (that API expects it). The intentional divergence
is documented at both call sites. Adds a payload test proving the gateway
omits it by default and includes it when set.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 22:42:13 +08:00
..
2026-07-20 18:53:20 +08:00
2026-06-18 22:16:31 +08:00
2026-07-22 16:31:22 +08:00
2026-07-20 18:53:20 +08:00
2026-06-17 10:30:25 +08:00
2026-06-27 18:47:53 +08:00
2026-06-18 00:22:48 +08:00
2026-06-11 20:03:34 +08:00