OpenRouterConnector class
- Inheritance
-
- Object
- ChatConnector
- OpenAIConnector
- OpenRouterConnector
Constructors
- OpenRouterConnector.new({required String apiKey, String baseUrl = "https://openrouter.ai/api/v1"})
-
const
Properties
Methods
-
call(
ChatRequest request) → Future< ChatResult> -
inherited
-
connect(
ChatModel model) → ConnectedChatModel -
inherited
-
embed(
{required String model, required String text, int? dimensions}) → Future< List< double> > -
override
-
embedMultiple(
{required String model, required List< String> texts, int? dimensions}) → Future<List< List< >double> > -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited