From 177714fd4f65ece6c551b7c92d15db3330f739e0 Mon Sep 17 00:00:00 2001
From: mraniki <8766259+mraniki@users.noreply.github.com>
Date: Sun, 1 Oct 2023 15:23:34 +0200
Subject: [PATCH 1/2] =?UTF-8?q?=E2=99=BB=EF=B8=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
myllm/main.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/myllm/main.py b/myllm/main.py
index f64e0870..e2b2044a 100644
--- a/myllm/main.py
+++ b/myllm/main.py
@@ -53,6 +53,7 @@ def __init__(self):
provider_module = importlib.import_module(provider_module_name)
provider_class = getattr(provider_module, provider_module_name.split(".")[-1])
self.provider = provider_class()
+ self.llm_model = settings.llm_model
self.conversation = Conversation()
async def get_myllm_help(self):
@@ -88,7 +89,7 @@ async def chat(self, prompt):
try:
self.conversation.add_message("user", prompt)
response = await self.provider.create_async(
- model=settings.llm_model,
+ model=self.llm_model,
messages=self.conversation.get_messages(),
)
sleep(settings.lag)
From b3415498c3a21e962eaf6132b34f127689e6195b Mon Sep 17 00:00:00 2001
From: mraniki <8766259+mraniki@users.noreply.github.com>
Date: Sun, 1 Oct 2023 15:27:37 +0200
Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=8E=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.github/.pre-commit-config.yaml | 13 +++++++++++--
README.md | 1 +
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.github/.pre-commit-config.yaml b/.github/.pre-commit-config.yaml
index dd62c4f3..e0615a5b 100644
--- a/.github/.pre-commit-config.yaml
+++ b/.github/.pre-commit-config.yaml
@@ -3,11 +3,20 @@ repos:
rev: v0.0.291
hooks:
- id: ruff
- #args: [--fix, --exit-non-zero-on-fix]
+ args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: check-toml
- - id: check-yaml
\ No newline at end of file
+ - id: trailing-whitespace
+ - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
+ rev: v2.10.0
+ hooks:
+ - id: pretty-format-toml
+ # args: [--autofix]
+# - repo: https://github.com/pre-commit/mirrors-prettier
+# rev: '' # Use the sha / tag you want to point at
+# hooks:
+# - id: prettier
\ No newline at end of file
diff --git a/README.md b/README.md
index eb34fa2d..2ca25db9 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,7 @@
+