mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-14 22:55:12 +10:00
fix: update translation model ID retrieval and improve file name extraction in translation service
This commit is contained in:
@@ -326,7 +326,7 @@ class TranslationService extends ChangeNotifier {
|
||||
}
|
||||
final trackedStream = _trackDownloadProgress(response.stream);
|
||||
await _fileStore.writeModelBytes(
|
||||
fileName: chunkPath.split('/').last,
|
||||
fileName: chunkPath.split(RegExp(r'[/\\]')).last,
|
||||
chunks: trackedStream,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user