diff --git a/nbs/01_config.ipynb b/nbs/01_config.ipynb index 3bc3fff..f67a3bf 100644 --- a/nbs/01_config.ipynb +++ b/nbs/01_config.ipynb @@ -186,7 +186,8 @@ " path = _cfg_path()\n", " path.parent.mkdir(parents=True, exist_ok=True)\n", " _types = get_type_hints(ShellSageConfig)\n", - " return Config(path.parent, path.name, create=asdict(ShellSageConfig()), types=_types)" + " return Config(path.parent, path.name, create=asdict(ShellSageConfig()),\n", + " types=_types, inline_comment_prefixes=('#'))" ] }, { @@ -198,7 +199,7 @@ { "data": { "text/plain": [ - "{'provider': 'anthropic', 'model': 'claude-3-5-sonnet-20241022', 'base_url': '', 'api_key': '', 'history_lines': '-1', 'code_theme': 'monokai', 'code_lexer': 'python'}" + "{'provider': 'openai', 'model': 'deepseek-chat', 'base_url': 'https://api.deepseek.com', 'api_key': 'sk-7369d525c23c4078b6d7e2af55903e71', 'history_lines': '-1', 'code_theme': 'monokai', 'code_lexer': 'python'}" ] }, "execution_count": null, diff --git a/nbs/index.ipynb b/nbs/index.ipynb index b8c0824..e218aa8 100644 --- a/nbs/index.ipynb +++ b/nbs/index.ipynb @@ -165,7 +165,7 @@ "[DEFAULT]\n", "# Choose your AI model provider\n", "provider = anthropic # or 'openai'\n", - "model = claude-3-sonnet # or 'gpt-4o-mini' for OpenAI\n", + "model = claude-3-5-sonnet-20241022 # or 'gpt-4o-mini' for OpenAI\n", "base_url = # leave empty to use default openai endpoint\n", "api_key = # leave empty to default to using your OPENAI_API_KEY env var\n", "\n", diff --git a/settings.ini b/settings.ini index 4b68c3c..587a8e0 100644 --- a/settings.ini +++ b/settings.ini @@ -26,7 +26,7 @@ keywords = nbdev jupyter notebook python language = English status = 3 user = AnswerDotAI -requirements = claudette cosette fastcore rich +requirements = claudette cosette fastcore>=1.7.28 rich console_scripts = ssage=shell_sage.core:main readme_nb = index.ipynb allowed_metadata_keys = diff --git a/shell_sage/config.py b/shell_sage/config.py index 0b70274..17cd5fb 100644 --- a/shell_sage/config.py +++ b/shell_sage/config.py @@ -40,4 +40,5 @@ def get_cfg(): path = _cfg_path() path.parent.mkdir(parents=True, exist_ok=True) _types = get_type_hints(ShellSageConfig) - return Config(path.parent, path.name, create=asdict(ShellSageConfig()), types=_types) + return Config(path.parent, path.name, create=asdict(ShellSageConfig()), + types=_types, inline_comment_prefixes=('#'))