パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v1.1.0+1

mistralai_client_dart

(非推奨) これは Mistral AI API 用の公式ではない Dart/Flutter クライアントです。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
34
いいね数
12
Pub ポイント
150

パッケージをインストール

flutter pub add mistralai_client_dart

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Mistral AI API の非公式な Dart/Flutter クライアントで、Flutter アプリケーションで Mistral の大規模言語モデルを統合できるようにします。このパッケージは、テキスト生成、チャットインタラクション、自然言語処理などのタスクに向けた Mistral モデルへの API 呼び出しを簡素化します。注意:このパッケージは非推奨であるため、新しい API 変更に対応した更新やサポートが行われない可能性があります。Android、iOS、Web、macOS、Windows、Linux など複数のプラットフォームをサポートしています。

用途

  • FlutterアプリへのMistral AIモデルの統合
  • AI対応チャットインターフェースの構築
  • 大規模な言語モデルを使用してテキストを生成する
  • AIを活用した多言語アプリケーションの作成
  • クロスプラットフォームアプリでのAI機能のプロトタイピング

主な機能

  • 公式ではないが機能的なAPIラッパー
  • すべての主要なプラットフォームをサポートしています
  • 一般的なAIタスクのためのシンプルなメソッド呼び出し
  • Flutter開発に最適化
  • 軽量で統合が簡単

適している対象

  • FlutterでAI機能を開発する開発者
  • TeamsがLLM統合のプロトタイピングを行っている
  • Mistral AI への迅速なアクセスが必要なプロジェクト
  • 教育的または実験的なAIアプリケーション

注意事項

  • パッケージは非推奨です - 自己責任でご使用ください
  • 最新のMistral API更新をサポートしない可能性があります
  • 公式の保守またはサポートなし
  • API キーとエラーの手動処理が必要です
  • 検証なしでは本番環境での使用は推奨されません

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Mistral AI client for Dart (Deprecated)

.github/workflows/check.yaml style: very good analysis

⚠️ Deprecation Notice

This library is deprecated and no longer maintained.

We recommend migrating to actively maintained alternatives for continued support and updates.

Description

This is an unofficial Dart/Flutter client for the Mistral AI API.

Installation

dart pub add mistralai_client_dart

Usage

Create client
import 'package:mistralai_client_dart/mistralai_client_dart.dart';

final client = MistralAIClient(apiKey: 'your api key here');
List models
final modelsResult = await client.listModels();
final models = modelsResult.data?.map((e) => e.id).toList();
print(models?.join(', '));
Chat
const request = ChatCompletionRequest(
  model: 'mistral-small-latest',
  messages: [
    UserMessage(content: UserMessageContent.string('Hello chat!')),
  ],
);
final chatCompletion = await client.chatComplete(request: request);
final chatMessage = chatCompletion.choices?[0].message;
print(chatMessage?.content);
Chat stream
final stream = client.chatStream(request: request);
await for (final completionChunk in stream) {
  final chatMessage = completionChunk.choices[0].delta.content;
  if (chatMessage != null) {
    print(chatMessage);
  }
}
Embeddings
final embeddings = await client.createEmbeddings(
  request: const EmbeddingRequest(
    model: 'mistral-embed',
    input: EmbeddingRequestInput.arrayString(['Hello chat!']),
  ),
);
for (final data in embeddings.data) {
  print('Embeddings: ${data.embedding}');
}
Function calling

Check examples:

Files

Check examples:

Fine-tuning Jobs

Check examples:

Fill in the middle completion

Check examples:

Agents

Check examples:

Moderation

Check examples:

Resources

You can check the official Mistral AI docs.

Contributing

For contributing guide please see CONTRIBUTING.md.

Flutter Flow (deprecated)

For Flutter Flow integration please use the mistralai_client_dart_flutter_flow package.

It's a version of this package that is adapted to work with Flutter Flow.

Aknowledgements

Part of the code was generated thx to openapi_spec package.

カテゴリー

依存関係

依存関係一覧 4 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。