Files
OmniRoute/tests
diegosouzapw 2e85d80adf fix(validation): guard non-string apiKey/modelsUrl in connection test (#2463)
A corrupted or mis-typed credential (non-string apiKey, or a non-string
modelsUrl from providerSpecificData/registry) could throw
'TypeError: ... is not a function' when validation called .startsWith()/.trim()
during a provider connection test. Adds typeof guards in validateOpenAILikeProvider,
validateGeminiLikeProvider and validateSnowflakeProvider so validation returns a
clean { valid } result instead of crashing. Does not pinpoint the NVIDIA NIM
e.startsWith report (needs a stack trace), but hardens the whole class.
2026-05-21 09:49:47 -03:00
..
2026-05-21 01:29:12 -03:00
2026-05-10 00:55:06 -03:00