Releases: Uralstech/UGemini
Releases · Uralstech/UGemini
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!
UGemini v1.0.0
Added
- Added documentation.
- Added new token counting sample.
- Added new
GeminiContent
utility method to convert a message andAudioClip
to aGeminiContent
object.
Changed
- Fixed text bug in Multi-turn Chat sample.
- Multi-turn Chat sample now includes model responses in history.
UGemini v1.0.0-preview.4
Added
- Utility functions to create
GeminiContentBlob
s directly fromTexture2D
s andAudioClip
s. - Added 3rd sample: Gemini JSON mode.
- Added some missing documentation.