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

Added support for custom models #1

Open
wants to merge 2 commits into
base: feature/ollama
Choose a base branch
from

Conversation

romejoe
Copy link

@romejoe romejoe commented Jan 28, 2024

This merge request adds config options to allow the Ollama model to be updated. Another config option was also added to allow the Ollama base url to be updated.

The changes include adding a constructor with `model` and `basePath` options to the `OllamaAi` class, updating the `generateCommitMessage` method to use these new options, adding static methods `validateBaseUrl` and `validateModel` to validate the Ollama API base URL and model availability respectively, and updating the import of `OllamaAi` in `engine.ts`
@di-sukharev
Copy link

@romejoe hi! please follow up here, i think this was introduced with 3.0.18

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