Closed Luyten-Orion closed 3 months ago
I forgot to include the exact error, the error is
/home/chronos/.nimble/pkgs2/sunny-0.1.8-4692a8890fa287ff182f347530f455bfbf8b7669/sunny.nim(1127, 9) template/generic instantiation of `fromJson` from here
/home/chronos/.nimble/pkgs2/sunny-0.1.8-4692a8890fa287ff182f347530f455bfbf8b7669/sunny.nim(1037, 22) Error: OllmGenerateResponse variant discriminator field cannot be omitted
Thanks for the heads up, small issue with a quick easy fix.
Fixed and tagged in 0.1.9 https://github.com/guzba/sunny/releases/tag/0.1.9
Thanks for the quick reply and fix, heavily appreciated!
On Wed, 26 Jun 2024, 1:08 am guzba, @.***> wrote:
Thanks for the heads up, small issue with a quick easy fix.
Fixed and tagged in 0.1.9 https://github.com/guzba/sunny/releases/tag/0.1.9
— Reply to this email directly, view it on GitHub https://github.com/guzba/sunny/issues/10#issuecomment-2190236269, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGSGUVYDP6E54XSQGS3BPA3ZJIBATAVCNFSM6AAAAABJ4XCO7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJQGIZTMMRWHE . You are receiving this because you authored the thread.Message ID: @.***>
Hey there, I'm currently writing an Ollama API wrapper and I decided to use
sunny
since it provided the features I needed, but when I added thecreatedAt
field, Sunny complained about the omission of the discriminator field. Removing this field fixes the error but prevents me from being able to store the parsed timestamp, other than this,sunny
is great and exactly what I needed!