Closed HavenDV closed 3 months ago
The updates across several JSON converter classes in the Ollama library primarily involve the removal of validation checks during serialization and deserialization processes. This change simplifies the control flow, allowing the acceptance of potentially invalid data without raising exceptions. Additionally, minor optimizations were made in the HTTP request handling methods to enhance code readability by separating the serialization logic from the request content creation.
Files | Change Summary |
---|---|
src/libs/Ollama/Generated/JsonConverters.AnyOf2.g.cs |
Removed validation checks for deserialization and serialization of AnyOf<T1, T2> . |
src/libs/Ollama/Generated/JsonConverters.CreateModelStatus.g.cs |
Eliminated validation checks for CreateModelStatus during serialization and deserialization. |
src/libs/Ollama/Generated/JsonConverters.DoneReason.g.cs |
Removed validation checks for DoneReason during serialization and deserialization. |
src/libs/Ollama/Generated/JsonConverters.PullModelStatus.g.cs |
Removed validation checks for PullModelStatus during serialization and deserialization. |
src/libs/Ollama/Generated/Ollama.ChatClient.GenerateChatCompletion.g.cs |
Refactored serialization of request for improved readability. |
src/libs/Ollama/Generated/Ollama.CompletionsClient.GenerateCompletion.g.cs |
Refactored serialization of request for improved readability. |
src/libs/Ollama/Generated/Ollama.EmbeddingsClient.GenerateEmbedding.g.cs |
Refactored serialization of request for improved readability. |
src/libs/Ollama/Generated/Ollama.ModelsClient.CopyModel.g.cs |
Refactored serialization of request for improved readability. |
src/libs/Ollama/Generated/Ollama.ModelsClient.CreateBlob.g.cs |
Refactored serialization of request for improved readability. |
src/libs/Ollama/Generated/Ollama.ModelsClient.CreateModel.g.cs |
Refactored serialization of request for improved readability. |
src/libs/Ollama/Generated/Ollama.ModelsClient.DeleteModel.g.cs |
Refactored serialization of request for improved readability. |
src/libs/Ollama/Generated/Ollama.ModelsClient.PullModel.g.cs |
Refactored serialization of request for improved readability. |
src/libs/Ollama/Generated/Ollama.ModelsClient.PushModel.g.cs |
Refactored serialization of request for improved readability. |
src/libs/Ollama/Generated/Ollama.ModelsClient.ShowModelInfo.g.cs |
Refactored serialization of request for improved readability. |
🐰 In the land of code where rabbits roam,
Validation checks have found a new home.
With lighter paths, we hop with glee,
Handling data, wild and free!
A sprinkle of clarity, a dash of delight,
Let’s celebrate these changes, oh what a sight! 🌼✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Created by Github Actions
Summary by CodeRabbit
New Features
Bug Fixes
Refactor