Skip to content

Commit

Permalink
UGemini v2.3.0-preview.3
Browse files Browse the repository at this point in the history
Updated to Unity 6, bump dependencies and improved batch Corpora API requests.
  • Loading branch information
Uralstech committed Oct 30, 2024
1 parent 18e76b6 commit 3c3c882
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class GeminiCorporaChunkBatchCreateRequestPart
/// <summary>
/// The parent document in which the Chunk will be created.
/// </summary>
[JsonProperty("name"), JsonConverter(typeof(GeminiCorpusResourceIdToStringConverter))]
[JsonProperty("name"), JsonConverter(typeof(GeminiCorpusResourceIdToStringConverter<GeminiCorpusDocumentId>))]
public GeminiCorpusDocumentId ParentDocumentId;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class GeminiCorporaChunkBatchDeleteRequestPart
/// <summary>
/// The resource name of the Chunk to delete.
/// </summary>
[JsonProperty("name"), JsonConverter(typeof(GeminiCorpusResourceIdToStringConverter))]
[JsonProperty("name"), JsonConverter(typeof(GeminiCorpusResourceIdToStringConverter<GeminiCorpusChunkId>))]
public GeminiCorpusChunkId ChunkId;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Uralstech.UGemini.CorporaAPI
{
/// <summary>
/// Creates a new Corpora API resource. Response type can be <see cref="GeminiCorpus"/>,
/// <see cref="Documents.GeminiCorpusDocument"/> or <see cref="Chunks.GeminiCorpusChunk"/>.
/// <see cref="GeminiCorpusDocument"/> or <see cref="GeminiCorpusChunk"/>.
/// </summary>
/// <remarks>
/// Only available in the beta API.
Expand Down
6 changes: 3 additions & 3 deletions UGemini/Packages/com.uralstech.ugemini/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "com.uralstech.ugemini",
"displayName": "UGemini",
"description": "UGemini: A Unity C# wrapper for the Google Gemini API.\n\nUGemini v2.0.0 contains many breaking changes. Please check the online documentation or the reference manual included with the package (located in the [package-location]/Documentation~/ folder) for the change list.",
"description": "UGemini: A Unity C# wrapper for the Google Gemini API.\n\nIf you've just updated UGemini, it is recommended to check out the releases page (https://github.com/Uralstech/UGemini/releases) for information on breaking changes for each update.",
"keywords": [
"API",
"Google",
"Gemini",
"AI",
"Integration"
],
"version": "2.3.0-preview.2",
"version": "2.3.0-preview.3",
"unity": "2022.3",
"hideInEditor": false,
"documentationUrl": "https://uralstech.github.io/UGemini/",
Expand Down Expand Up @@ -67,7 +67,7 @@
}
],
"dependencies": {
"com.uralstech.utils.singleton": "1.0.1",
"com.uralstech.utils.singleton": "1.1.0",
"com.uralstech.ucloud.operations": "1.1.4",
"com.unity.nuget.newtonsoft-json": "3.2.1"
}
Expand Down
11 changes: 6 additions & 5 deletions UGemini/Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"dependencies": {
"com.unity.collab-proxy": "2.5.1",
"com.unity.feature.development": "1.0.1",
"com.unity.textmeshpro": "3.0.9",
"com.unity.timeline": "1.7.6",
"com.unity.ugui": "1.0.0",
"com.unity.collab-proxy": "2.5.2",
"com.unity.feature.development": "1.0.2",
"com.unity.multiplayer.center": "1.0.0",
"com.unity.timeline": "1.8.7",
"com.unity.ugui": "2.0.0",
"com.unity.visualscripting": "1.9.4",
"com.uralstech.ugemini": "1.0.1",
"com.utilities.encoder.wav": "1.2.2",
"com.unity.modules.accessibility": "1.0.0",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.androidjni": "1.0.0",
"com.unity.modules.animation": "1.0.0",
Expand Down
60 changes: 32 additions & 28 deletions UGemini/Packages/packages-lock.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dependencies": {
"com.unity.collab-proxy": {
"version": "2.5.1",
"version": "2.5.2",
"depth": 0,
"source": "registry",
"dependencies": {},
Expand All @@ -15,23 +15,22 @@
"url": "https://packages.unity.com"
},
"com.unity.ext.nunit": {
"version": "2.0.3",
"depth": 4,
"version": "2.0.5",
"depth": 2,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.feature.development": {
"version": "1.0.1",
"version": "1.0.2",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.ide.visualstudio": "2.0.22",
"com.unity.ide.rider": "3.0.31",
"com.unity.ide.vscode": "1.2.5",
"com.unity.editorcoroutines": "1.0.0",
"com.unity.performance.profile-analyzer": "1.2.2",
"com.unity.test-framework": "1.1.33",
"com.unity.test-framework": "1.4.5",
"com.unity.testtools.codecoverage": "1.2.6"
}
},
Expand All @@ -53,12 +52,13 @@
},
"url": "https://packages.unity.com"
},
"com.unity.ide.vscode": {
"version": "1.2.5",
"depth": 1,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
"com.unity.multiplayer.center": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.uielements": "1.0.0"
}
},
"com.unity.nuget.mono-cecil": {
"version": "1.11.4",
Expand Down Expand Up @@ -89,8 +89,8 @@
"url": "https://packages.unity.com"
},
"com.unity.test-framework": {
"version": "1.4.2",
"depth": 3,
"version": "1.4.5",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.ext.nunit": "2.0.3",
Expand All @@ -109,17 +109,8 @@
},
"url": "https://packages.unity.com"
},
"com.unity.textmeshpro": {
"version": "3.0.9",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.ugui": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.timeline": {
"version": "1.7.6",
"version": "1.8.7",
"depth": 0,
"source": "registry",
"dependencies": {
Expand All @@ -131,7 +122,7 @@
"url": "https://packages.unity.com"
},
"com.unity.ugui": {
"version": "1.0.0",
"version": "2.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
Expand Down Expand Up @@ -164,13 +155,13 @@
"depth": 0,
"source": "embedded",
"dependencies": {
"com.uralstech.utils.singleton": "1.0.1",
"com.uralstech.utils.singleton": "1.1.0",
"com.uralstech.ucloud.operations": "1.1.4",
"com.unity.nuget.newtonsoft-json": "3.2.1"
}
},
"com.uralstech.utils.singleton": {
"version": "1.0.1",
"version": "1.1.0",
"depth": 1,
"source": "registry",
"dependencies": {},
Expand Down Expand Up @@ -207,6 +198,12 @@
},
"url": "https://package.openupm.com"
},
"com.unity.modules.accessibility": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.ai": {
"version": "1.0.0",
"depth": 0,
Expand Down Expand Up @@ -254,6 +251,12 @@
"com.unity.modules.animation": "1.0.0"
}
},
"com.unity.modules.hierarchycore": {
"version": "1.0.0",
"depth": 1,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.imageconversion": {
"version": "1.0.0",
"depth": 0,
Expand Down Expand Up @@ -342,7 +345,8 @@
"dependencies": {
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0"
"com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.hierarchycore": "1.0.0"
}
},
"com.unity.modules.umbra": {
Expand Down
7 changes: 7 additions & 0 deletions UGemini/ProjectSettings/MultiplayerManager.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!655991488 &1
MultiplayerManager:
m_ObjectHideFlags: 0
m_EnableMultiplayerRoles: 0
m_StrippingTypes: {}
4 changes: 2 additions & 2 deletions UGemini/ProjectSettings/ProjectVersion.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
m_EditorVersion: 2022.3.48f1
m_EditorVersionWithRevision: 2022.3.48f1 (8bf49c377ebf)
m_EditorVersion: 6000.0.23f1
m_EditorVersionWithRevision: 6000.0.23f1 (1c4764c07fb4)

0 comments on commit 3c3c882

Please sign in to comment.