We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22d31c5 commit 862a34bCopy full SHA for 862a34b
1 file changed
ai/ai-react-app/src/components/Layout/MainLayout.tsx
@@ -62,7 +62,9 @@ const MainLayout: React.FC<MainLayoutProps> = ({
62
try {
63
const backendInstance =
64
activeBackendType === BackendType.VERTEX_AI
65
- ? new VertexAIBackend()
+ ? activeMode === "nanobanana"
66
+ ? new VertexAIBackend("global")
67
+ : new VertexAIBackend()
68
: new GoogleAIBackend();
69
const aiInstance = getAI(getApp(), { backend: backendInstance });
70
setActiveAI(aiInstance);
@@ -77,7 +79,7 @@ const MainLayout: React.FC<MainLayoutProps> = ({
77
79
);
78
80
setActiveAI(null);
81
}
- }, [activeBackendType]);
82
+ }, [activeBackendType, activeMode]);
83
84
useEffect(() => {
85
setUsageMetadata(null);
0 commit comments