|
15 | 15 | "id": "8d5eaf1e", |
16 | 16 | "metadata": {}, |
17 | 17 | "source": [ |
18 | | - "# ShellSage Configuration" |
| 18 | + "# Configuration" |
19 | 19 | ] |
20 | 20 | }, |
21 | 21 | { |
|
37 | 37 | "from dataclasses import dataclass\n", |
38 | 38 | "from fastcore.all import *\n", |
39 | 39 | "from fastcore.xdg import *\n", |
40 | | - "from typing import get_type_hints\n", |
41 | | - "\n", |
42 | | - "import claudette as cla, cosette as cos" |
| 40 | + "from typing import get_type_hints" |
43 | 41 | ] |
44 | 42 | }, |
45 | 43 | { |
|
74 | 72 | { |
75 | 73 | "data": { |
76 | 74 | "text/plain": [ |
77 | | - "Path('/Users/nathan/.config/shell_sage/shell_sage.conf')" |
| 75 | + "Path('/home/natedawg/.config/shell_sage/shell_sage.conf')" |
78 | 76 | ] |
79 | 77 | }, |
80 | 78 | "execution_count": null, |
|
86 | 84 | "_cfg_path()" |
87 | 85 | ] |
88 | 86 | }, |
89 | | - { |
90 | | - "cell_type": "code", |
91 | | - "execution_count": null, |
92 | | - "id": "25b71dc6", |
93 | | - "metadata": {}, |
94 | | - "outputs": [], |
95 | | - "source": [ |
96 | | - "#| export\n", |
97 | | - "providers = { 'anthropic': cla.models, 'openai': cos.models}" |
98 | | - ] |
99 | | - }, |
100 | | - { |
101 | | - "cell_type": "code", |
102 | | - "execution_count": null, |
103 | | - "id": "d7c2100c", |
104 | | - "metadata": {}, |
105 | | - "outputs": [ |
106 | | - { |
107 | | - "data": { |
108 | | - "text/plain": [ |
109 | | - "{'anthropic': ['claude-3-opus-20240229',\n", |
110 | | - " 'claude-3-7-sonnet-20250219',\n", |
111 | | - " 'claude-3-5-sonnet-20241022',\n", |
112 | | - " 'claude-3-haiku-20240307',\n", |
113 | | - " 'claude-3-5-haiku-20241022'],\n", |
114 | | - " 'openai': ('o1-preview',\n", |
115 | | - " 'o1-mini',\n", |
116 | | - " 'gpt-4o',\n", |
117 | | - " 'gpt-4o-mini',\n", |
118 | | - " 'gpt-4-turbo',\n", |
119 | | - " 'gpt-4',\n", |
120 | | - " 'gpt-4-32k',\n", |
121 | | - " 'gpt-3.5-turbo',\n", |
122 | | - " 'gpt-3.5-turbo-instruct',\n", |
123 | | - " 'o1',\n", |
124 | | - " 'o3-mini',\n", |
125 | | - " 'chatgpt-4o-latest')}" |
126 | | - ] |
127 | | - }, |
128 | | - "execution_count": null, |
129 | | - "metadata": {}, |
130 | | - "output_type": "execute_result" |
131 | | - } |
132 | | - ], |
133 | | - "source": [ |
134 | | - "providers" |
135 | | - ] |
136 | | - }, |
137 | 87 | { |
138 | 88 | "cell_type": "code", |
139 | 89 | "execution_count": null, |
|
144 | 94 | "#| export\n", |
145 | 95 | "@dataclass\n", |
146 | 96 | "class ShellSageConfig:\n", |
147 | | - " provider: str = \"anthropic\"\n", |
148 | | - " model: str = providers['anthropic'][1]\n", |
| 97 | + " model: str = 'claude-sonnet-4-5-20250929'\n", |
| 98 | + " search: str = ''\n", |
149 | 99 | " mode: str = 'default'\n", |
150 | | - " base_url: str = ''\n", |
| 100 | + " api_base: str = ''\n", |
151 | 101 | " api_key: str = ''\n", |
152 | 102 | " history_lines: int = -1\n", |
153 | 103 | " code_theme: str = \"monokai\"\n", |
|
164 | 114 | { |
165 | 115 | "data": { |
166 | 116 | "text/plain": [ |
167 | | - "ShellSageConfig(provider='anthropic', model='claude-3-7-sonnet-20250219', mode='default', base_url='', api_key='', history_lines=-1, code_theme='monokai', code_lexer='python', log=False)" |
| 117 | + "ShellSageConfig(model='claude-sonnet-4-5-20250929', search='', mode='default', api_base='', api_key='', history_lines=-1, code_theme='monokai', code_lexer='python', log=False)" |
168 | 118 | ] |
169 | 119 | }, |
170 | 120 | "execution_count": null, |
|
205 | 155 | ] |
206 | 156 | } |
207 | 157 | ], |
208 | | - "metadata": { |
209 | | - "kernelspec": { |
210 | | - "display_name": "python3", |
211 | | - "language": "python", |
212 | | - "name": "python3" |
213 | | - } |
214 | | - }, |
| 158 | + "metadata": {}, |
215 | 159 | "nbformat": 4, |
216 | 160 | "nbformat_minor": 5 |
217 | 161 | } |
0 commit comments