-
Notifications
You must be signed in to change notification settings - Fork 474
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
}, | ||
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?
}, | ||
}, | ||
}, | ||
async (input, config) => { |
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.
Rename input
to request
, as I believe this better reflects the params intentions here.
|
||
const DEFAULT_OLLAMA_SERVER_ADDRESS = 'http://localhost:11434'; | ||
|
||
async function initializer( |
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.
Perhaps keep this code in the same position, just so the PR is not as large.
Fixes #3456
Checklist (if applicable):