markjamesm / MistralSharp

Unofficial .NET SDK for the Mistral AI platform.
https://www.nuget.org/packages/MistralSharp
MIT License
14 stars 2 forks source link

Refactor MistralClient Class #5

Open markjamesm opened 9 months ago

markjamesm commented 9 months ago

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.

markjamesm commented 9 months ago

Currently working on this, started with this commit:

https://github.com/markjamesm/MistralSharp/commit/4b6c03e2a2cd0102d46fe2a42e53a4b5087c0073