这是indexloc提供的服务,不要输入任何密码
Skip to content

Config Ollama chat and Embeddings options via config.toml #601

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

owynrichen
Copy link

This PR is similar to #456, but enables updating of any Ollama parameter exposed by langchain via config. Either PR solves issue #496 and is useful when interfacing with models that demand larger contexts (like deepseek-r1).

It expects the chat options to have a key format matching: https://v03.api.js.langchain.com/interfaces/_langchain_ollama.ChatOllamaInput.html

and the embeddings options to have a key format matching:
https://v03.api.js.langchain.com/interfaces/_langchain_ollama.OllamaEmbeddingsParams.html

I did follow the CONTRIBUTING.md process, tested things and it works well.

@luisbrandao
Copy link

Why this is not a thing yet?

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