Skip to content

Commit

Permalink
Merge c0639d7 into d3d5d7f
Browse files Browse the repository at this point in the history
  • Loading branch information
amakropoulos authored Sep 3, 2024
2 parents d3d5d7f + c0639d7 commit 7337f99
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v2.2.2
#### 🐛 Fixes

- fix adding grammar from StreamingAssets (PR: #229)


## v2.2.1
#### 🐛 Fixes

Expand Down
3 changes: 1 addition & 2 deletions CHANGELOG.release.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
### 🐛 Fixes

- Fix naming showing full path when loading model (PR: #224)
- Fix parallel prompts (PR: #226)
- fix adding grammar from StreamingAssets (PR: #229)

3 changes: 3 additions & 0 deletions Runtime/LLMUnitySetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,9 @@ public static string AddAsset(string assetPath)
LogError($"{assetPath} does not exist!");
return null;
}
string assetDir = GetAssetPath();
if (IsSubPath(assetPath, assetDir)) return RelativePath(assetPath, assetDir);

string filename = Path.GetFileName(assetPath);
string fullPath = GetAssetPath(filename);
AssetDatabase.StartAssetEditing();
Expand Down

0 comments on commit 7337f99

Please sign in to comment.