-
Notifications
You must be signed in to change notification settings - Fork 436
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
cause: e, | ||
}); | ||
} | ||
const modelResponse = JSON.parse(await res.text()) as ListLocalModelsResponse; |
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 might be able to just do await res.json()
here
}, | ||
}, | ||
async (input, config) => { | ||
const serverAddress = config?.serverAddress || options.serverAddress; |
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.
in the v2 plugin system, the config parameter in the embedder action handler doesn't seem to have a serverAddress property
Fixes #3456
Checklist (if applicable):