From a4b4e6501120f89e6dc05b87f5e2929833795e21 Mon Sep 17 00:00:00 2001 From: tumf Date: Thu, 4 Jul 2024 15:03:17 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20(README.md):=20add=20support=20f?= =?UTF-8?q?or=20custom=20AI=20models=20and=20update=20documentation=20to?= =?UTF-8?q?=20reflect=20new=20environment=20variable=20OCO=5F=20AI=5FPROVI?= =?UTF-8?q?DER=20(#351)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 4cb4b2b..86cfceb 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,11 @@ You can also run it with local model through ollama: git add OCO_AI_PROVIDER='ollama' opencommit ``` +If you want to use a model other than mistral, you can do so by setting the `OCO_AI_PROVIDER` environment variable as follows: + +```sh +OCO_AI_PROVIDER='ollama/llama3:8b' opencommit +``` ### Flags @@ -110,6 +115,7 @@ OCO_LANGUAGE= OCO_MESSAGE_TEMPLATE_PLACEHOLDER= OCO_PROMPT_MODULE= OCO_ONE_LINE_COMMIT= +OCO_AI_PROVIDER= ``` ### Global config for all repos