{"id":18903545,"url":"https://github.com/nomtek/mistralai_client_dart","last_synced_at":"2025-08-04T12:34:15.518Z","repository":{"id":216648872,"uuid":"741868356","full_name":"nomtek/mistralai_client_dart","owner":"nomtek","description":"This is an unofficial Dart/Flutter client for the Mistral AI API.","archived":false,"fork":false,"pushed_at":"2025-06-01T21:03:05.000Z","size":221,"stargazers_count":31,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-02T07:21:18.356Z","etag":null,"topics":["dart","flutter","mistral","mistralai","mistralai-client"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nomtek.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-11T09:27:04.000Z","updated_at":"2025-03-21T15:38:01.000Z","dependencies_parsed_at":"2024-06-03T11:19:10.369Z","dependency_job_id":"e09e18c3-7358-4109-8264-173be70875d5","html_url":"https://github.com/nomtek/mistralai_client_dart","commit_stats":null,"previous_names":["nomtek/mistralai_client_dart"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/nomtek/mistralai_client_dart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomtek%2Fmistralai_client_dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomtek%2Fmistralai_client_dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomtek%2Fmistralai_client_dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomtek%2Fmistralai_client_dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nomtek","download_url":"https://codeload.github.com/nomtek/mistralai_client_dart/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomtek%2Fmistralai_client_dart/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268696897,"owners_count":24292383,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","flutter","mistral","mistralai","mistralai-client"],"created_at":"2024-11-08T09:05:30.386Z","updated_at":"2025-08-04T12:34:15.503Z","avatar_url":"https://github.com/nomtek.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mistral AI client for Dart (Deprecated)\n\n[![.github/workflows/check.yaml](https://github.com/nomtek/mistralai_client_dart/actions/workflows/check.yaml/badge.svg)](https://github.com/nomtek/mistralai_client_dart/actions/workflows/check.yaml)\n[![style: very good analysis](https://img.shields.io/badge/style-very_good_analysis-B22C89.svg)](https://pub.dev/packages/very_good_analysis)\n\n## ⚠️ Deprecation Notice\n\n**This library is deprecated and no longer maintained.**\n\nWe recommend migrating to actively maintained alternatives for continued support and updates.\n\n## Description\n\nThis is an unofficial Dart/Flutter client for the Mistral AI API.\n\n## Installation\n\n```shell\ndart pub add mistralai_client_dart\n```\n\n## Usage\n\n### Create client\n\n```dart\nimport 'package:mistralai_client_dart/mistralai_client_dart.dart';\n\nfinal client = MistralAIClient(apiKey: 'your api key here');\n```\n\n### List models\n\n```dart\nfinal modelsResult = await client.listModels();\nfinal models = modelsResult.data?.map((e) =\u003e e.id).toList();\nprint(models?.join(', '));\n```\n\n### Chat\n\n```dart\nconst request = ChatCompletionRequest(\n  model: 'mistral-small-latest',\n  messages: [\n    UserMessage(content: UserMessageContent.string('Hello chat!')),\n  ],\n);\nfinal chatCompletion = await client.chatComplete(request: request);\nfinal chatMessage = chatCompletion.choices?[0].message;\nprint(chatMessage?.content);\n```\n\n### Chat stream\n\n```dart\nfinal stream = client.chatStream(request: request);\nawait for (final completionChunk in stream) {\n  final chatMessage = completionChunk.choices[0].delta.content;\n  if (chatMessage != null) {\n    print(chatMessage);\n  }\n}\n```\n\n### Embeddings\n\n```dart\nfinal embeddings = await client.createEmbeddings(\n  request: const EmbeddingRequest(\n    model: 'mistral-embed',\n    input: EmbeddingRequestInput.arrayString(['Hello chat!']),\n  ),\n);\nfor (final data in embeddings.data) {\n  print('Embeddings: ${data.embedding}');\n}\n```\n\n### Function calling\n\nCheck examples:\n\n- [Function calling example](example/mistralai_client_function_calling_dart_example.dart)\n\n### Files\n\nCheck examples:\n\n- [Files example](example/mistralai_client_files_example.dart)\n\n### Fine-tuning Jobs\n\nCheck examples:\n\n- [Fine-tuning jobs example](example/mistralai_client_jobs_example.dart)\n\n### Fill in the middle completion\n\nCheck examples:\n\n- [FIM completion example](example/fim_completion_example.dart)\n- [FIM completion stream example](example/fim_completion_stream_example.dart)\n\n### Agents\n\nCheck examples:\n\n- [Agents example](example/agents_example.dart)\n\n### Moderation\n\nCheck examples:\n\n- [Moderation example](example/mistralai_client_moderation_example.dart)\n\n## Resources\n\nYou can check the [official Mistral AI docs](https://docs.mistral.ai/).\n\n## Contributing\n\nFor contributing guide please see [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## Flutter Flow (deprecated)\n\nFor Flutter Flow integration please use the [mistralai_client_dart_flutter_flow](https://pub.dev/packages/mistralai_client_dart_flutter_flow) package.\n\nIt's a version of this package that is adapted to work with Flutter Flow.\n\n## Aknowledgements\n\nPart of the code was generated thx to [openapi_spec](https://pub.dev/packages/openapi_spec) package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomtek%2Fmistralai_client_dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnomtek%2Fmistralai_client_dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomtek%2Fmistralai_client_dart/lists"}