Skip to content

Added support for custom models#1

Open
romejoe wants to merge 2 commits intojaroslaw-weber:feature/ollamafrom
romejoe:feature/ollama
Open

Added support for custom models#1
romejoe wants to merge 2 commits intojaroslaw-weber:feature/ollamafrom
romejoe:feature/ollama

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