anerli
10/13/2025, 12:56 AMclient<llm> VertexGeminiFlash {
provider vertex-ai
retry_policy SimpleConstant
options {
model "gemini-2.5-flash"
location us-central1
credentials env.GOOGLE_APPLICATION_CREDENTIALS
generationConfig {
temperature 0.5
thinkingConfig {
thinkingBudget 0
}
}
}
}
but using vertex in registry e.g.
const tempRegistry = new ClientRegistry();
tempRegistry.addLlmClient('GeminiConnectorClient', 'vertex-ai', {
model: 'gemini-2.5-flash',
location: 'us-central1',
credentials: process.env.GOOGLE_APPLICATION_CREDENTIALS,
gemerationConfig: {
temperature: 0.5,
thinkingConfig: {
thinkingBudget: 0
}
}
});
tempRegistry.setPrimary('GeminiConnectorClient');
and then using it will produce an error:
BamlError: BamlClientError: BamlClientHttpError: Request failed with status code: 403 Forbidden. {"error":{"code":403,"message":"Method doesn't allow unregistered callers (callers without established identity). Please use API Key or other form of API consumer identity to call this API.","status":"PERMISSION_DENIED"}}baml-sam
10/13/2025, 12:57 AMbaml-sam
10/13/2025, 12:58 AMgemerationConfig should be an n, not an manerli
10/13/2025, 12:58 AManerli
10/13/2025, 12:58 AMbaml-sam
10/13/2025, 12:58 AManerli
10/13/2025, 1:00 AM