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

OllamaError should be Send + Sync #117

Merged
merged 1 commit into from
Jan 31, 2025
Merged

Conversation

j7nw4r
Copy link
Contributor

@j7nw4r j7nw4r commented Jan 31, 2025

OllamaError is not currently Send + Sync due to the trait bounds on the [from] in InternalToolError. This prevents Result<T, OllamaError> from being held/used across awaits. This code changes fixes that issue.

It also adds a compile time assert for validation.

@pepperoni21 pepperoni21 merged commit 8a0eb5f into pepperoni21:master Jan 31, 2025
2 of 3 checks passed
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.

2 participants