From 13ad7aea17eb1330444c114eafdef5348b0b2b12 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sun, 22 Feb 2026 12:03:07 -0500 Subject: [PATCH] fixing --- aggregate.py | 2 +- config.toml | 6 +++--- gemini.py | 35 ----------------------------------- manual_slop.toml | 2 +- 4 files changed, 5 insertions(+), 40 deletions(-) delete mode 100644 gemini.py diff --git a/aggregate.py b/aggregate.py index 304ebc8..fb6d57f 100644 --- a/aggregate.py +++ b/aggregate.py @@ -141,7 +141,7 @@ def build_markdown(base_dir: Path, files: list[str], screenshot_base_dir: Path, parts.append("## Discussion History\n\n" + build_discussion_section(history)) return "\n\n---\n\n".join(parts) -def run(config: dict) -> tuple[str, Path]: +def run(config: dict) -> tuple[str, Path, list]: namespace = config.get("project", {}).get("name") if not namespace: namespace = config.get("output", {}).get("namespace", "project") diff --git a/config.toml b/config.toml index d175f70..9bcdd4e 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,6 @@ [ai] -provider = "anthropic" -model = "claude-sonnet-4-6" +provider = "gemini" +model = "gemini-2.5-pro" temperature = 0.6000000238418579 max_tokens = 12000 history_trunc_limit = 8000 @@ -17,4 +17,4 @@ paths = [ "manual_slop.toml", "C:/projects/forth/bootslop/bootslop.toml", ] -active = "C:/projects/forth/bootslop/bootslop.toml" +active = "manual_slop.toml" diff --git a/gemini.py b/gemini.py deleted file mode 100644 index 2761f9b..0000000 --- a/gemini.py +++ /dev/null @@ -1,35 +0,0 @@ -# gemini.py -import tomllib -from pathlib import Path -from google import genai -from google.genai import types - -_client = None -_chat = None - -def _load_key() -> str: - with open("credentials.toml", "rb") as f: - return tomllib.load(f)["gemini"]["api_key"] - -def _ensure_client(): - global _client - if _client is None: - _client = genai.Client(api_key=_load_key()) - -def _ensure_chat(): - global _chat - if _chat is None: - _ensure_client() - _chat = _client.chats.create(model="gemini-2.0-flash") - -def send(md_content: str, user_message: str) -> str: - global _chat - _ensure_chat() - full_message = f"\n{md_content}\n\n\n{user_message}" - response = _chat.send_message(full_message) - return response.text - -def reset_session(): - global _client, _chat - _client = None - _chat = None diff --git a/manual_slop.toml b/manual_slop.toml index 6bd81fe..c11decc 100644 --- a/manual_slop.toml +++ b/manual_slop.toml @@ -147,7 +147,7 @@ history = [ [discussion.discussions."docs writeup"] git_commit = "bf2d09f3fd817d64fbf6b4aa667e2b635b6fbc0e" -last_updated = "2026-02-22T11:08:58" +last_updated = "2026-02-22T12:01:06" history = [ "@2026-02-22T08:56:39\nUser:\nLets write extensive documentation in the same style that I used for my VEFontCache-Oodin project.\nI added it's directories to your context.", "@2026-02-22T08:56:58\nAI:\n(No text returned)",