davidmigloz / langchain_dart

Build LLM-powered Dart/Flutter applications.
https://langchaindart.dev
MIT License
426 stars 75 forks source link

refactor: Remove default model from the language model options #498

Closed davidmigloz closed 4 months ago

davidmigloz commented 4 months ago

Resolves #481

LanguageModelOptions (like ChatOpenAIOptions, ChatMistralAIOptions etc) do not specify the default model in the constructor anymore. Instead, the default model is applied if the model field in defaultOptions and the invoke options are null. This prevents the model to be reset when using the bind operator.