Skip to content

chore(deps): bump send and express in /cloud_functions/functions #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
427 changes: 251 additions & 176 deletions cloud_functions/functions/package-lock.json

Unchanged files with check annotations Beta

// See the License for the specific language governing permissions and
// limitations under the License.
import 'package:flutter/material.dart';

Check failure on line 15 in vertexai/lib/main.dart

GitHub Actions / analyze

Target of URI doesn't exist: 'package:flutter/material.dart'.

Try creating the file referenced by the URI, or try using a URI for a file that does exist. See https://dart.dev/diagnostics/uri_does_not_exist to learn more about this problem.
import 'package:flutter/services.dart';

Check failure on line 16 in vertexai/lib/main.dart

GitHub Actions / analyze

Target of URI doesn't exist: 'package:flutter/services.dart'.

Try creating the file referenced by the URI, or try using a URI for a file that does exist. See https://dart.dev/diagnostics/uri_does_not_exist to learn more about this problem.
import 'package:flutter_markdown/flutter_markdown.dart';

Check failure on line 17 in vertexai/lib/main.dart

GitHub Actions / analyze

Target of URI doesn't exist: 'package:flutter_markdown/flutter_markdown.dart'.

Try creating the file referenced by the URI, or try using a URI for a file that does exist. See https://dart.dev/diagnostics/uri_does_not_exist to learn more about this problem.
import 'package:firebase_vertexai/firebase_vertexai.dart';

Check failure on line 18 in vertexai/lib/main.dart

GitHub Actions / analyze

Target of URI doesn't exist: 'package:firebase_vertexai/firebase_vertexai.dart'.

Try creating the file referenced by the URI, or try using a URI for a file that does exist. See https://dart.dev/diagnostics/uri_does_not_exist to learn more about this problem.
import 'package:firebase_core/firebase_core.dart';

Check failure on line 19 in vertexai/lib/main.dart

GitHub Actions / analyze

Target of URI doesn't exist: 'package:firebase_core/firebase_core.dart'.

Try creating the file referenced by the URI, or try using a URI for a file that does exist. See https://dart.dev/diagnostics/uri_does_not_exist to learn more about this problem.
void main() {
runApp(const GenerativeAISample());

Check failure on line 22 in vertexai/lib/main.dart

GitHub Actions / analyze

The function 'runApp' isn't defined.

Try importing the library that defines 'runApp', correcting the name to the name of an existing function, or defining a function named 'runApp'. See https://dart.dev/diagnostics/undefined_function to learn more about this problem.
}
class GenerativeAISample extends StatelessWidget {

Check failure on line 25 in vertexai/lib/main.dart

GitHub Actions / analyze

Classes can only extend other classes.

Try specifying a different superclass, or removing the extends clause. See https://dart.dev/diagnostics/extends_non_class to learn more about this problem.
const GenerativeAISample({super.key});

Check failure on line 26 in vertexai/lib/main.dart

GitHub Actions / analyze

No associated named super constructor parameter.

Try changing the name to the name of an existing named super constructor parameter, or creating such named parameter. See https://dart.dev/diagnostics/super_formal_parameter_without_associated_named to learn more about this problem.
@override
Widget build(BuildContext context) {

Check warning on line 29 in vertexai/lib/main.dart

GitHub Actions / analyze

The method doesn't override an inherited method.

Try updating this class to match the superclass, or removing the override annotation. See https://dart.dev/diagnostics/override_on_non_overriding_member to learn more about this problem.

Check failure on line 29 in vertexai/lib/main.dart

GitHub Actions / analyze

Undefined class 'Widget'.

Try changing the name to the name of an existing class, or creating a class with the name 'Widget'. See https://dart.dev/diagnostics/undefined_class to learn more about this problem.

Check failure on line 29 in vertexai/lib/main.dart

GitHub Actions / analyze

Undefined class 'BuildContext'.

Try changing the name to the name of an existing class, or creating a class with the name 'BuildContext'. See https://dart.dev/diagnostics/undefined_class to learn more about this problem.
return MaterialApp(
title: 'Flutter + Vertex AI',
theme: ThemeData(
final String title;
@override
State<ChatScreen> createState() => _ChatScreenState();

Check warning on line 50 in vertexai/lib/main.dart

GitHub Actions / analyze

The method doesn't override an inherited method.

Try updating this class to match the superclass, or removing the override annotation. See https://dart.dev/diagnostics/override_on_non_overriding_member to learn more about this problem.
}
class _ChatScreenState extends State<ChatScreen> {
@override
Widget build(BuildContext context) {

Check warning on line 55 in vertexai/lib/main.dart

GitHub Actions / analyze

The method doesn't override an inherited method.

Try updating this class to match the superclass, or removing the override annotation. See https://dart.dev/diagnostics/override_on_non_overriding_member to learn more about this problem.
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
});
@override
State<ChatWidget> createState() => _ChatWidgetState();

Check warning on line 71 in vertexai/lib/main.dart

GitHub Actions / analyze

The method doesn't override an inherited method.

Try updating this class to match the superclass, or removing the override annotation. See https://dart.dev/diagnostics/override_on_non_overriding_member to learn more about this problem.
}
class _ChatWidgetState extends State<ChatWidget> {
late final GenerativeModel _model;
late final GenerativeModel _functionCallModel;

Check warning on line 76 in vertexai/lib/main.dart

GitHub Actions / analyze

The value of the field '_functionCallModel' isn't used.

Try removing the field, or using it. See https://dart.dev/diagnostics/unused_field to learn more about this problem.
late final ChatSession _chat;
final ScrollController _scrollController = ScrollController();
final TextEditingController _textController = TextEditingController();
bool _loading = false;
@override
void initState() {

Check warning on line 86 in vertexai/lib/main.dart

GitHub Actions / analyze

The method doesn't override an inherited method.

Try updating this class to match the superclass, or removing the override annotation. See https://dart.dev/diagnostics/override_on_non_overriding_member to learn more about this problem.
super.initState();
initFirebase().then((value) {
}
@override
Widget build(BuildContext context) {

Check warning on line 130 in vertexai/lib/main.dart

GitHub Actions / analyze

The method doesn't override an inherited method.

Try updating this class to match the superclass, or removing the override annotation. See https://dart.dev/diagnostics/override_on_non_overriding_member to learn more about this problem.
final textFieldDecoration = InputDecoration(
contentPadding: const EdgeInsets.all(15),
hintText: 'Enter a prompt...',
});
@override
Widget build(BuildContext context) {

Check warning on line 441 in vertexai/lib/main.dart

GitHub Actions / analyze

The method doesn't override an inherited method.

Try updating this class to match the superclass, or removing the override annotation. See https://dart.dev/diagnostics/override_on_non_overriding_member to learn more about this problem.
return Row(
mainAxisAlignment:
isFromUser ? MainAxisAlignment.end : MainAxisAlignment.start,
child: Column(
children: [
if (text case final text?) MarkdownBody(data: text),
if (image case final image?) image,

Check warning on line 463 in vertexai/lib/main.dart

GitHub Actions / analyze

The null-check pattern will have no effect because the matched type isn't nullable.

Try replacing the null-check pattern with its nested pattern. See https://dart.dev/diagnostics/unnecessary_null_check_pattern to learn more about this problem.
],
),
),