Releases: Uralstech/UGemini
Releases · Uralstech/UGemini
UGemini v1.4.0 Preview 1
Notice
This is a preview release. It is not recommended to use this version in your production projects as the API interface may change the next update.
Added
Support for embedContent
, batchEmbedContents
and generateAnswer
methods.
Full Changelog: 1.3.0...1.4.0-preview.1
UGemini v1.3.0
Added
- Added support for Gemini
models.get
andmodels.list
methods, including samples.
Breaking changes
See the online reference manual or refman.pdf
included in the package documentation for all deprecated members and information on the replacements.
- All model-related requests now use
GeminiModelId
objects to identify the models to use. GeminiManager
model ID constants have been removed.
Full Changelog: 1.2.3...1.3.0
UGemini v1.2.3
UGemini v1.2.2
UGemini v1.2.1
Added
- New sample for streaming generated content!
Changed
- Updated function calling sample.
Full Changelog: 1.2.0...1.2.1
UGemini v1.2.0
Added
- Added support for
streamGenerateContent
!
Changes
- Function calling sample has been updated and can now handle multiple function calls in a single response.
Breaking changes
IGeminiRequest
'sEndpointUri
has now been replaced with the methodstring GetEndpointUri(GeminiRequestMetadata metadata)
.- All interfaces inheriting from
IGeminiRequest
have been moved toScripts/Data/Requests
.
Update guide
For those updating from v1.0.X: Check the update notes for v1.1.0 for an update guide.
Full Changelog: 1.1.2...1.2.0
UGemini v1.1.2
Changed
- Added metadata addition support to
GeminiFileUploadRequest
(GeminiFileUploadMetaData.Name
does not work as of now).
Update guide
For those updating from v1.0.X: Check the update notes for v1.1.0 for an update guide.
UGemini v1.1.1
Changed
- Updated documentation
Update guide
For those updating from v1.0.X: Check the update notes for v1.1.0 for an update guide.
UGemini v1.1.0
Added
- File API support. (File upload support is unstable)
- Added utility method for
GeminiContent
for prompts withGeminiFile
data. - Added text MIME types to
GeminiContentType
. - Added extension method to convert
string
values to their equivalentGeminiContentType
values. - Added extension methods for Unity types like
AudioClip
andTexture2D
to convert them into Base64 strings and byte arrays.
Breaking changes
GeminiManager.Compute
and parts of related types have been deprecated.Obsolete
attributes have been added to these parts of the package. The following is a list of changes that you may have to make to your code to update to the latest package:- Switch to
GeminiChatRequest
's new constructorGeminiChatRequest(string model, bool useBetaApi)
- Switch to
GeminiTokenCountRequest
's new constructorGeminiTokenCountRequest(string model, bool useBetaApi)
- Use
GeminiManager
'sTask<TResponse> Request<TResponse>
and its variants instead ofGeminiManager.Compute
, for example:var response = await GeminiManager.Instance.Compute<GeminiChatRequest, GeminiChatResponse>(new GeminiChatRequest(), GeminiManager.RequestEndPoint.Chat, useBeta: _useBeta);
->var response = await GeminiManager.Instance.Request<GeminiChatResponse>(new GeminiChatRequest(useBetaApi: _useBeta));
- Use
GeminiRequestException.RequestEndpoint
(of typeUri
) instead ofGeminiRequestException.RequestEndPoint
- Use
GeminiRequestException.IsBetaApi
instead ofGeminiRequestException.ApiVersionString
to know which API version is being used
- Switch to
UGemini v1.0.1
Changed
- All chat request and response types now have full compatibility with the Gemini v1 and v1beta
generateContent
methods!