@@ -219,15 +219,19 @@ func (c *Config) configureProviders(env env.Env, resolver VariableResolver, know
219219 switch p.ID {
220220 // Handle specific providers that require additional configuration
221221 case catwalk.InferenceProviderVertexAI:
222− if !hasVertexCredentials(env) {
222+ var (
223+ project = env.Get("VERTEXAI_PROJECT")
224+ location = env.Get("VERTEXAI_LOCATION")
225+ )
226+ if project == "" || location == "" {
223227 if configExists {
224228 slog.Warn("Skipping Vertex AI provider due to missing credentials")
225229 c.Providers.Del(string(p.ID))
226230 }
227231 continue
228232 }
229− prepared.ExtraParams["project"] = env.Get("VERTEXAI_PROJECT")
230− prepared.ExtraParams["location"] = env.Get("VERTEXAI_LOCATION")
233+ prepared.ExtraParams["project"] = project
234+ prepared.ExtraParams["location"] = location
231235 case catwalk.InferenceProviderAzure:
232236 endpoint, err := resolver.ResolveValue(p.APIEndpoint)
233237 if err != nil || endpoint == "" {
@@ -677,12 +681,6 @@ func loadFromBytes(configs [][]byte) (*Config, error) {
677681 return &config, nil
678682}
679683
680−func hasVertexCredentials(env env.Env) bool {
681− hasProject := env.Get("VERTEXAI_PROJECT") != ""
682− hasLocation := env.Get("VERTEXAI_LOCATION") != ""
683− return hasProject && hasLocation
684−}
685−
686684func hasAWSCredentials(env env.Env) bool {
687685 if env.Get("AWS_BEARER_TOKEN_BEDROCK") != "" {
688686 return true