Jump to content
Maxidonkey

[Info & Feedback] DelphiMistralAI wrapper updated

Recommended Posts

Hi all,

Just wanted to share a quick update on the DelphiMistralAI wrapper: it's now aligned with the latest capabilities released by MistralAI.

 

1. Conversational Agents & Agentic Tools

  • Full support for the “agentic” approach: define custom agents with instructions and embedded tools (code execution, premium web search, access to libraries/documentation, etc.).
  • Conversations and Agents endpoints enable multi-turn sessions with actions (function calling, callbacks, web_search_premium, code_interpreter, etc.).
  • Usage example in the documentation: agent configuration, callback handling, and customization of triggerable tools.

 

2. Vision & Advanced OCR (Document AI)

  • Image processing: text extraction, description, classification, and visual analysis via vision models (e.g., pixtral-12b-2409).
  • Extended OCR: recognizes not just text but structural elements (boxes, tables, metadata), outputs structured JSON per user-defined schema, and handles figures, charts, signatures automatically.
  • Native handling of PDFs and images with automatic annotation for industry use cases (finance, legal, HR, etc.).

 

3. Audio

  • Multilingual transcription with automatic language detection, segmentation, and timestamps (voxtral models).
  • Analysis of audio files (up to roughly 15–20 minutes) integrated directly into the multimodal chat session.
  • Typical use cases: meeting summarization, indexing, context-aware voice assistants, and audio+NLP pipelines.

 

4. Batch & Moderation

  • Asynchronous batch inference over large volumes, with background job tracking.
  • Native integration of moderation APIs to filter incoming or generated content.
  • Designed for high-throughput or sensitive applications (personal data, enterprise contexts, etc.).

 

5. Fine-tuning, Specialized Models & Libraries

  • Fine-tuning support to adapt models to very specific domain requirements.
  • Libraries endpoint for managing and sharing documentation resources; enables fine-grained, contextual access from OD agents.

 

6. Extensibility, Asynchronicity & Software Quality

  • All endpoints exposed in both synchronous and asynchronous modes (promises, callbacks, progressive streaming, live cancellation).
  • HTTP layer dependency injection to facilitate mocking, unit testing, and alignment with modern architecture patterns.
  • Built-in unit tests: seamless DUnit integration via the MistralAI.DUnit.Tests unit to bootstrap validation suites quickly.
     

7. Tooling

  • TutorialHub and ready-to-run sample projects.
  • Explicit support for VCL and FMX architectures with functional scenarios..

 

8. Getting Started

 

Download one of the two ready-to-run sample projects (VCL or FMX) from the sample/ folder in the repository. Each .zip contains the full scaffold so you can start with minimal setup: unzip, open the project in Delphi, and provide your MistralAI API key (either in code or via the provided UI).

 

Then follow the README as a step-by-step guide: obtain your API key, initialize the client in the form’s OnCreate, perform an initial “chat” call, and proceed to explore the included scenarios (vision, audio, agents, etc.).

The samples are designed as a sandbox—feel free to tweak prompts, swap models, and iterate on workflows to validate and extend functionality.


 

 

Feedback and Questions
Feel free to post here or share your adaptations to help enrich the discussion and so, the project.

 

 

 

 

 

 

 

  • Like 3
  • Thanks 2

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×