Use resolved targets for client routing
This commit is contained in:
@@ -111,12 +111,9 @@ func TestReachabilityProbeIsUnsupportedWithoutHTTPClient(t *testing.T) {
|
||||
|
||||
func reachabilityClient(t *testing.T, roundTrip func(*http.Request) (*http.Response, error)) *llm.OpenAICompatibleClient {
|
||||
t.Helper()
|
||||
client, err := llm.NewOpenAICompatibleClient(llm.OpenAICompatibleConfig{
|
||||
client := llm.NewOpenAICompatibleClient(llm.OpenAICompatibleConfig{
|
||||
HTTPClient: &http.Client{Transport: reachabilityProbeTransport(roundTrip)},
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
return client
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user