-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Update ChatFirebaseVertexAI default model to gemini-1.5-flash (#…
…458)
- Loading branch information
1 parent
2587f9e
commit d3c96c5
Showing
6 changed files
with
47 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/langchain_firebase/example/web/flutter_bootstrap.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{flutter_js}} | ||
{{flutter_build_config}} | ||
|
||
_flutter.loader.load({ | ||
serviceWorkerSettings: { | ||
serviceWorkerVersion: {{flutter_service_worker_version}}, | ||
}, | ||
onEntrypointLoaded: async function(engineInitializer) { | ||
const appRunner = await engineInitializer.initializeEngine({useColorEmoji: true}); | ||
await appRunner.runApp(); | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<!-- | ||
If you are serving your web app in a path other than the root, change the | ||
href value below to reflect the base path you are serving from. | ||
The path provided below has to start and end with a slash "/" in order for | ||
it to work correctly. | ||
For more details: | ||
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base | ||
This is a placeholder for base href that will be replaced by the value of | ||
the `--base-href` argument provided to `flutter build`. | ||
--> | ||
<base href="$FLUTTER_BASE_HREF"> | ||
|
||
<meta charset="UTF-8"> | ||
<meta content="IE=Edge" http-equiv="X-UA-Compatible"> | ||
<meta name="description" content="A new Flutter project."> | ||
<meta content="A sample Flutter app integrating VertexAI for Firebase in LangChain.dart." name="description"> | ||
|
||
<!-- iOS meta tags & icons --> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black"> | ||
<meta name="apple-mobile-web-app-title" content="example"> | ||
<link rel="apple-touch-icon" href="icons/Icon-192.png"> | ||
<meta content="yes" name="apple-mobile-web-app-capable"> | ||
<meta content="black" name="apple-mobile-web-app-status-bar-style"> | ||
<meta content="hello_world_flutter" name="apple-mobile-web-app-title"> | ||
<link href="icons/Icon-192.png" rel="apple-touch-icon"> | ||
|
||
<!-- Favicon --> | ||
<link rel="icon" type="image/png" href="favicon.png"/> | ||
|
||
<title>example</title> | ||
<link rel="manifest" href="manifest.json"> | ||
<link href="favicon.png" rel="icon" type="image/png"/> | ||
|
||
<script> | ||
// The value below is injected by flutter build, do not touch. | ||
const serviceWorkerVersion = null; | ||
</script> | ||
<!-- This script adds the flutter initialization JS code --> | ||
<script src="flutter.js" defer></script> | ||
<title>VertexAI for Firebase in LangChain.dart</title> | ||
<link href="manifest.json" rel="manifest"> | ||
</head> | ||
<body> | ||
<script> | ||
window.addEventListener('load', function(ev) { | ||
// Download main.dart.js | ||
_flutter.loader.loadEntrypoint({ | ||
serviceWorker: { | ||
serviceWorkerVersion: serviceWorkerVersion, | ||
}, | ||
onEntrypointLoaded: function(engineInitializer) { | ||
engineInitializer.initializeEngine({ | ||
useColorEmoji: true, | ||
}).then(function(appRunner) { | ||
appRunner.runApp(); | ||
}); | ||
} | ||
}); | ||
}); | ||
</script> | ||
<script src="flutter_bootstrap.js" async></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters