You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Flutter Web and I get an error when using langchain_open.dart:
/C:/Users/William/AppData/Local/Pub/Cache/hosted/pub.dev/openai_dart-0.0.2+1/lib/src/generated/schema/create_completion_request.dart:147:31: Error: The integer literal 9223372036854775807 can't be represented exactly in JavaScript.
Try changing the literal to something that can be represented in JavaScript. In JavaScript 9223372036854775808 is the nearest value that can be represented exactly.
static const seedMaxValue = 9223372036854775807;
^^^^^^^^^^^^^^^^^^^
/C:/Users/William/AppData/Local/Pub/Cache/hosted/pub.dev/openai_dart-0.0.2+1/lib/src/generated/schema/create_chat_completion_request.dart:154:31: Error: The integer literal 9223372036854775807 can't be represented exactly in JavaScript.
Try changing the literal to something that can be represented in JavaScript. In JavaScript 9223372036854775808 is the nearest value that can be represented exactly.
static const seedMaxValue = 9223372036854775807;
^^^^^^^^^^^^^^^^^^^
Related Components
doc-loaders
doc-transformers
prompts
llms
chat-models
output-parsers
chains
memory
stores
embeddings
retrievers
agents
Reproduction
Flutter web
Just this line: import 'package:langchain_openai/langchain_openai.dart';
And that line produces the same error with or without import 'package:langchain/langchain.dart'; as well.
bryantwilliam
changed the title
langchain_openai not working in flutter web
langchain_openai not running in Flutter Web: "The integer literal 9223372036854775807 can't be represented exactly in JavaScript"
Nov 12, 2023
I've issued a fix in langchain_openai: 0.0.15+2. I've run all the tests in the browser and all are green now. Let me know if it works fine on your side.
System Info
I'm using Flutter Web and I get an error when using langchain_open.dart:
Related Components
Reproduction
Flutter web
Just this line:
import 'package:langchain_openai/langchain_openai.dart';
And that line produces the same error with or without
import 'package:langchain/langchain.dart';
as well.My pubspec.yaml:
The text was updated successfully, but these errors were encountered: