(t *testing.T, endpoint string)
| 309 | } |
| 310 | |
| 311 | func testConfigOpenAIEndpoint(t *testing.T, endpoint string) *config.Config { |
| 312 | t.Helper() |
| 313 | cfg := testConfig(100, true) |
| 314 | cfg.Backends[0].Type = "openai_compatible" |
| 315 | cfg.Backends[0].Endpoint = endpoint |
| 316 | return cfg |
| 317 | } |
| 318 | |
| 319 | func TestInfer_StreamUpstreamJSON_DegradeFlagInResponse(t *testing.T) { |
| 320 | up := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
no test coverage detected