Releases: Uralstech/UGemini
UGemini v2.1.0 Preview 8
This release is a part of UGemini v2.1.0, pull request #29.
Changed
- Fixed
TransferOwnership.GeminiTunedModelDeleteRequest
.
Full Changelog: 2.1.0-preview.7...2.1.0-preview.8
UGemini v2.1.0 Preview 7
This release is a part of UGemini v2.1.0, pull request #29.
Breaking Changes
- Fixed
GeminiTunedModelListRequest
, soGeminiTunedModelListRequest.Models
is nowGeminiTunedModelListRequest.TunedModels
.
Added
- Simple filters for
GeminiTunedModelListRequest
s. - New
EnumExtensions
class for commonly used extensions for enum types.
Full Changelog: 2.1.0-preview.6...2.1.0-preview.7
UGemini v2.1.0 Preview 6
For those updating from v1.x.x: Check the update notes for v2.0.0 for an update guide.
This release is a part of UGemini v2.1.0, pull request #29.
Changed
- It seems the DELETE method does not exist in the Gemini API's endpoints.
- I've also fixed the bug with empty response confirmations.
Full Changelog: 2.1.0-preview.5...2.1.0-preview.6
UGemini v2.1.0 Preview 5
For those updating from v1.x.x: Check the update notes for v2.0.0 for an update guide.
This release is a part of UGemini v2.1.0, pull request #29.
Breaking Changes
Uralstech.UGemini.Utils.Singleton
namespace has been moved to the Utils.Singleton package, which is now a dependency of UGemini.GeminiStatus
andGeminiStatusDetails
have been moved to the UCloud.Operations package, which is now a dependency of UGemini. UseUralstech.UCloud.Operations.OperationStatus
andUralstech.UCloud.ProtobufObject
instead, respectively.GeminiTunedModelCreateResponse
is now an empty class inheriting fromUralstech.UCloud.Operations.Generic.Operation<GeminiTunedModelCreationOperationMetadata, GeminiTunedModel>
.
Changed
- Fixed possible exception in
GeminiManager
when an empty JSON object is returned for a request that expects an empty response. - All references to
https://generativelanguage.googleapis.com
have been changed to the newGeminiManager.BaseServiceUri
constant.
Full Changelog: 2.1.0-preview.4...2.1.0-preview.5
UGemini v2.1.0 Preview 4
For those updating from v1.x.x: Check the update notes for v2.0.0 for an update guide.
This release is a part of UGemini v2.1.0, pull request #29.
Breaking Changes
- Fixed response type for
GeminiTunedModelCreateRequest
fromGeminiTunedModel
toGeminiTunedModelCreateResponse
. - All
tunedModels
endpoints requests now default to using the Beta API. - All
tunedModels
endpoints requests now default to using OAuth Access Token authentication.
Added
- Support for multiple authentication method (API Key, OAuth) for all requests. Most default to API key authentication.
Full Changelog: 2.1.0-preview.3...2.1.0-preview.4
UGemini v2.1.0 Preview 3
For those updating from v1.x.x: Check the update notes for v2.0.0 for an update guide.
This release is a part of UGemini v2.1.0, pull request #29.
Added
- Documentation generation is by DocFX.
- Improved error handling in
GeminiManager
with newGeminiResponseParsingException
exception.
Full Changelog: 2.1.0-preview.2...2.1.0-preview.3
UGemini v2.1.0 Preview 2
For those updating from v1.x.x: Check the update notes for v2.0.0 for an update guide.
This release is a part of UGemini v2.1.0, pull request #29.
Added
- Support for
tunedModels.patch
andtunedModels.transferOwnership
. - New method
Task Request(IGeminiPostRequest request)
inGeminiManager
.
Full Changelog: 2.1.0-preview.1...2.1.0-preview.2
UGemini v2.1.0 Preview 1
For those updating from v1.x.x: Check the update notes for v2.0.0 for an update guide.
This release is a part of UGemini v2.1.0, pull request #29.
Breaking Changes
GeminiModelGetRequest.ModelName
is now a property and is deprecated. UseGeminiModelId GeminiModelGetRequest.Model
instead.
Added
- Support for
tunedModels.create
,tunedModels.delete
,tunedModels.get
andtunedModels.list
.
Changed
- Updated
GeminiModelIdStringConverter
to be more explicit in conversion.
Full Changelog: 2.0.1...2.1.0-preview.1
UGemini v2.0.1
For those updating from v1.x.x: Check the update notes for v2.0.0 for an update guide.
Changes
- Fixed
GeminiChatResponse.Parts
NullReferenceException
whenCandidates
is null. - Fixed
StreamingFunctionCallingChatManager
NullReferenceException
whenstreamedResponse.Parts
is null. - Fixed
QuestionAnsweringManager
NullReferenceException
whenresponse.Answer.Content.Parts
is null or empty. - Fixed
UIChatMessage
NullReferenceException
whencontent.Parts
is null.
Pull Requests
- Null handling hotfix (UGemini v2.0.1) by @Uralstech in #27
Full Changelog: 2.0.0...2.0.1
UGemini v2.0.0
Added
- Support for the
cachedContents
endpoint. - Support for the code execution tool.
- New
ApplicationPDF
value inGeminiContentType
for PDF file uploads. - New values for
GeminiFinishReason
andGeminiBlockReason
to maintain compatibility with the Gemini API. - New
long? MaxItems
field inGeminiSchema
to maintain compatibility with the Gemini API. - New constructor for
GeminiFileUploadRequest
which acceptsGeminiContentType
for thecontentType
field. - Support for full file names (format
files/{fileId}
) in the constructors forGeminiFileDeleteRequest
andGeminiFileGetRequest
. - Better error handling in streamed chat requests.
Changed
- Updated samples for new namespaces.
- Updated documentation for v1Beta-only methods.
- Better
null
handling forGeminiChatResponse.Parts
.
Known Issues
GeminiChatResponse.Parts
can still raiseNullReferenceException
s ifCandidates
itself isnull
.
Breaking Changes
EnumExtensions
is nowGeminiContentTypeExtensions
.GeminiTimeSpanJsonConverter
is nowGeminiSecondsToTimeSpanJsonConverter
inUralstech.UGemini
.- The
fileId
field in the constructors forGeminiFileDeleteRequest
andGeminiFileGetRequest
has been renamed tofileNameOrId
. - All code previously marked as "deprecated" has been removed.
For namespace changes, please refer to this table:
Class | Old Namespace | New Namespace |
---|---|---|
GeminiContent |
Uralstech.UGemini |
Uralstech.UGemini.Models.Content |
GeminiContentBlob |
Uralstech.UGemini |
Uralstech.UGemini.Models.Content |
GeminiContentPart |
Uralstech.UGemini |
Uralstech.UGemini.Models.Content |
GeminiFileData |
Uralstech.UGemini |
Uralstech.UGemini.Models.Content |
GeminiRole |
Uralstech.UGemini |
Uralstech.UGemini.Models.Content |
UnityExtensions |
Uralstech.UGemini |
Uralstech.UGemini.Models.Content |
GeminiAttributionSourceId |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Content.Attribution |
GeminiGroundingAttribution |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Content.Attribution |
GeminiGroundingPassageId |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Content.Attribution |
GeminiSemanticRetrieverChunk |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Content.Attribution |
GeminiCitationMetadata |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Content.Citation |
GeminiCitationSource |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Content.Citation |
GeminiTokenCountRequest |
Uralstech.UGemini.TokenCounting |
Uralstech.UGemini.Models.CountTokens |
GeminiTokenCountResponse |
Uralstech.UGemini.TokenCounting |
Uralstech.UGemini.Models.CountTokens |
GeminiBatchEmbedContentRequest |
Uralstech.UGemini.Embedding |
Uralstech.UGemini.Models.Embedding |
GeminiBatchEmbedContentResponse |
Uralstech.UGemini.Embedding |
Uralstech.UGemini.Models.Embedding |
GeminiContentEmbedding |
Uralstech.UGemini.Embedding |
Uralstech.UGemini.Models.Embedding |
GeminiEmbedContentRequest |
Uralstech.UGemini.Embedding |
Uralstech.UGemini.Models.Embedding |
GeminiEmbedContentResponse |
Uralstech.UGemini.Embedding |
Uralstech.UGemini.Models.Embedding |
GeminiEmbedTaskType |
Uralstech.UGemini.Embedding |
Uralstech.UGemini.Models.Embedding |
GeminiGenerationConfiguration |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Generation |
GeminiResponseType |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Generation |
GeminiCandidate |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Generation.Candidate |
GeminiPromptFeedback |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Generation.Candidate |
GeminiUsageMetadata |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Generation.Candidate |
GeminiFinishReason |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Generation.Candidate |
GeminiChatRequest |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Generation.Chat |
GeminiChatResponse |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Generation.Chat |
GeminiAnswerRequest |
Uralstech.UGemini.Answer |
Uralstech.UGemini.Models.Generation.QuestionAnswering |
GeminiAnswerResponse |
Uralstech.UGemini.Answer |
Uralstech.UGemini.Models.Generation.QuestionAnswering |
GeminiAnswerStyle |
Uralstech.UGemini.Answer |
Uralstech.UGemini.Models.Generation.QuestionAnswering |
GeminiGroundingPassage |
Uralstech.UGemini.Answer |
Uralstech.UGemini.Models.Generation.QuestionAnswering.Grounding |
GeminiGroundingPassages |
Uralstech.UGemini.Answer |
Uralstech.UGemini.Models.Generation.QuestionAnswering.Grounding |
GeminiMetadataCondition |
Uralstech.UGemini.Answer |
Uralstech.UGemini.Models.Generation.QuestionAnswering.SemanticRetriever |
GeminiMetadataFilter |
Uralstech.UGemini.Answer |
Uralstech.UGemini.Models.Generation.QuestionAnswering.SemanticRetriever |
GeminiSemanticRetrieverConfig |
Uralstech.UGemini.Answer |
Uralstech.UGemini.Models.Generation.QuestionAnswering.SemanticRetriever |
GeminiMetadataConditionOperator |
Uralstech.UGemini.Answer |
Uralstech.UGemini.Models.Generation.QuestionAnswering.SemanticRetriever |
GeminiSafetyRating |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Generation.Safety |
GeminiSafetySettings |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Generation.Safety |
GeminiBlockReason |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Generation.Safety |
GeminiHarmProbability |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Generation.Safety |
GeminiSafetyHarmBlockThreshold |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Generation.Safety |
GeminiSafetyHarmCategory |
Uralstech.UGemini.Chat |
Uralstech.UGemini.Models.Generation.Safety |
GeminiSchema |
Uralstech.UGemini.Schema |
Uralstech.UGemini.Models.Generation.Schema |
GeminiSchemaDataFormat |
Uralstech.UGemini.Schema |
Uralstech.UGemini.Models.Generation.Schema |
GeminiSchemaDataType |
Uralstech.UGemini.Schema |
Uralstech.UGemini.Models.Generation.Schema |
GeminiFunctionCall |
Uralstech.UGemini.Tools |
Uralstech.UGemini.Models.Generation.Tools |
GeminiFunctionResponse |
Uralstech.UGemini.Tools |
Uralstech.UGemini.Models.Generation.Tools |
GeminiFunctionResponseContent |
Uralstech.UGemini.Tools |
Uralstech.UGemini.Models.Generation.Tools |
GeminiFunctionCallingConfiguration |
Uralstech.UGemini.Tools.Declaration |
Uralstech.UGemini.Models.Generation.Tools.Declaration |
GeminiFunctionDeclaration |
Uralstech.UGemini.Tools.Declaration |
`Uralstech.UGemini.Models.Generatio... |