Skip to content

Commit

Permalink
Add support for Google AI provider - Gemini 1.5 Pro (#88)
Browse files Browse the repository at this point in the history
Co-authored-by: David Miguel <[email protected]>
  • Loading branch information
tinoper and davidmigloz authored Nov 14, 2024
1 parent e376112 commit 76f635a
Show file tree
Hide file tree
Showing 19 changed files with 779 additions and 295 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ For example, how the UI should behave when the user interacts with it.

**3. Code generation**

The app leverages the power of OpenAI GPT-4o multimodal LLM to transform
your screenshot and instructions into Flutter code.
The app leverages the power of multimodal LLMs (OpenAI GPT-4o or Google Gemini 1.5 Pro)
to transform your screenshot and instructions into Flutter code.

**4. Run the code**

Expand Down
62 changes: 47 additions & 15 deletions lib/app/assets/assets.gen.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

167 changes: 92 additions & 75 deletions lib/app/injection/injection.config.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions lib/app/injection/injection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:get_it/get_it.dart';
import 'package:github/github.dart';
import 'package:go_router/go_router.dart';
import 'package:injectable/injectable.dart';
import 'package:langchain_google/langchain_google.dart';
import 'package:langchain_openai/langchain_openai.dart';
import 'package:syntax_highlight/syntax_highlight.dart';
import '../navigation/router.dart';
Expand Down Expand Up @@ -31,6 +32,9 @@ abstract class InjectionModule {
@singleton
ChatOpenAI get chatOpenAI => ChatOpenAI();

@singleton
ChatGoogleGenerativeAI get chatGoogleGenerativeAI => ChatGoogleGenerativeAI();

@singleton
OpenAIDallETool get dallETool => OpenAIDallETool();

Expand Down
Loading

0 comments on commit 76f635a

Please sign in to comment.