markjamesm / mistralsharp Goto Github PK
View Code? Open in Web Editor NEWUnofficial .NET SDK for the Mistral AI platform.
Home Page: https://www.nuget.org/packages/MistralSharp
License: MIT License
Unofficial .NET SDK for the Mistral AI platform.
Home Page: https://www.nuget.org/packages/MistralSharp
License: MIT License
Need to add support for streaming. You can specify streamlining as a parameter in the ChatRequest class, and it is defined as:
// Default: false
// Whether to stream back partial progress. If set, tokens will be sent as data-only server-sent events
// as they become available, with the stream terminated by a data: [DONE] message. Otherwise, the server will
// hold the request open until the timeout or until completion, with the response containing the full
// result as JSON.
Stream = false,
The best way to implement it would be to add a check to the ChatAsync() method, and if the ChatRequest Stream is set to false, default to the standard HTTPClient PostAsync call. If true, then setup a stream.
Need to implement null checks in MistralClient class.
I've been working rather quickly to implement the API, and a refactor is needed to cleanup the MistralClient class. I plan to split the GetAvailableModelsAsync() and ChatAsync() methods into smaller private methods to handle the conversion to DTO classes as they're currently quite long.
Implement the list available models endpoint as outlined here:
MistralSharp
is facing the same issue, as depicted here: https://discord.com/channels/1144547040454508606/1184444810279522374/1195108690353717369
Pull-request #7 fixes it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.