OpenRouterModel class

Available extensions
Annotations
  • @artifact

Constructors

OpenRouterModel.new({required String id, required String canonical_slug, required String name, required int created, required int context_length, required OpenRouterArchitecture architecture, List<String> supported_parameters = const [], OpenRouterPricing pricing = const OpenRouterPricing()})
const

Properties

architecture OpenRouterArchitecture
final
canonical_slug String
final
context_length int
final
created int
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
name String
final
pricing OpenRouterPricing
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supported_parameters List<String>
final
toChatModel ChatModel
no setter

Methods

copyWith({_3? id, _3? canonical_slug, _3? name, _5? created, _5? deltaCreated, _5? context_length, _5? deltaContext_length, _u? architecture, _2? supported_parameters, _w resetSupported_parameters = _F, _2? appendSupported_parameters, _2? removeSupported_parameters, _v? pricing, _w resetPricing = _F}) → _t

Available on _t, provided by the $OpenRouterModel extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({bool pretty = _F}) → _3

Available on _t, provided by the $OpenRouterModel extension

toMap() → _1

Available on _t, provided by the $OpenRouterModel extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited