-
Notifications
You must be signed in to change notification settings - Fork 477
feat(js/plugins/ollama): migrate ollama plugin to v2 plugin API #3547
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
base: main
Are you sure you want to change the base?
feat(js/plugins/ollama): migrate ollama plugin to v2 plugin API #3547
Conversation
js/plugins/ollama/src/embeddings.ts
Outdated
}, | ||
async (input, config) => { | ||
const serverAddress = config?.serverAddress || options.serverAddress; | ||
const serverAddress = options.serverAddress || 'http://localhost:11434'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does that address come from? Is there no better alternatives than having this?
js/plugins/ollama/src/embeddings.ts
Outdated
}, | ||
async (input, config) => { | ||
const serverAddress = config?.serverAddress || options.serverAddress; | ||
const serverAddress = options.serverAddress || 'http://localhost:11434'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're no longer getting serverAddress from config, because (as far as i understand) it doesn't exist on that interface any more in v2 API.
Can we mention this in the PR description
Fixes #3456
Note:
We're no longer getting
serverAddress
from config, because it doesn't exist on that interface any more in v2 API.Checklist (if applicable):