Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support unicode characters in model path #3681

Merged
merged 3 commits into from
Apr 16, 2024
Merged

Support unicode characters in model path #3681

merged 3 commits into from
Apr 16, 2024

Conversation

jmorganca
Copy link
Member

@jmorganca jmorganca commented Apr 16, 2024

When running the c++ subprocess, unicode characters in file names were not being parsed correctly, resulting in an error. This changes server.cpp to use wmain to receive the wide characters and converts them first.

Closes #3273
Fixes #2888
Fixes #3120

@jmorganca jmorganca requested a review from dhiltgen April 16, 2024 20:11
@jmorganca jmorganca changed the title Support unicode characters in model Support unicode characters in model path Apr 16, 2024
@jmorganca jmorganca merged commit 7c9792a into main Apr 16, 2024
15 checks passed
@jmorganca jmorganca deleted the jmorganca/wmain branch April 16, 2024 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ollama cannot open models with unicode in the filepath Fail to load dynamic library - unicode character path
2 participants