Breaking Changes
GeminiModelIdStringConverter
andGeminiSecondsToTimeSpanJsonConverter
have been moved toUralstech.UGemini.JsonConverters
.GeminiFile.Status
is obsolete, useGeminiFile.Error
instead.
Gemini API Update Changes
- Added new field
CachedContentTokenCount
toGeminiTokenCountResponse
. - Added new field
MaxTemperature
toGeminiModel
. - Added new fields
AvgLogprobs
andLogprobsResult
toGeminiCandidate
. - Added new enum value
Language
toGeminiFinishReason
. - Added new fields
PresencePenalty
,FrequencyPenalty
,ResponseLogprobs
andLogprobs
toGeminiGenerationConfiguration
. - Added new enum value
Off
toGeminiSafetyHarmBlockThreshold
. - Added new enum value
CivicIntegrity
toGeminiSafetyHarmCategory
. - Added new field
MinItems
toGeminiSchema
. - Added new field
ReaderProjectNumbers
toGeminiTunedModelCreationData
andGeminiTunedModel
.
Other Changes
- Fixed
long
values not converting tostring
JSON as expected by the API. - Added missing
EnumMember
attributes for someGeminiSchemaDataFormat
. GeminiCachedConent.cs
has been renamed toGeminiCachedContent.cs
.
Pull Requests
- UGemini v2.2.0 by @Uralstech in #42
Full Changelog: 2.1.1...2.2.0