패키지, 저장소 및 앱 카테고리 검색

패키지 상세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 기능 프로토타이핑

주요 기능

  • 공식이 아닌 기능적인 API 래퍼
  • 모든 주요 플랫폼을 지원합니다
  • 일반적인 AI 작업을 위한 간단한 메서드 호출
  • Flutter 개발을 위해 설계됨
  • 가볍고 통합하기 쉬움

적합한 대상

  • Flutter에서 AI 기능을 개발하는 개발자
  • 팀이 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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.