Skip to content

Commit f33523c

Browse files
authored
Merge pull request #71 from dalist1/main
new and improved sonnet 3.5 model
2 parents 36554bb + be0c7db commit f33523c

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ By default Micro Agent uses `gpt-4o` as the model, but you can override it with
193193
micro-agent config set MODEL=gpt-3.5-turbo
194194
```
195195

196-
or, if you supply an Anthropic key, you can use any Claude model. by default `claude` is an alias to `claude-3-5-sonnet-20240620`:
196+
or, if you supply an Anthropic key, you can use any Claude model. by default `claude` is an alias to `claude-3-5-sonnet-20241022`:
197197

198198
```bash
199199
micro-agent config set MODEL=claude

src/helpers/config.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('getConfig', () => {
4343
const defaultConfig = {
4444
ANTHROPIC_KEY: undefined,
4545
USE_ASSISTANT: true,
46-
ANTHROPIC_MODEL: 'claude-3-5-sonnet-20240620',
46+
ANTHROPIC_MODEL: 'claude-3-5-sonnet-20241022',
4747
LANGUAGE: 'en',
4848
MODEL: 'gpt-4o',
4949
OPENAI_API_ENDPOINT: 'https://api.openai.com/v1',

src/helpers/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const configParsers = {
2727
},
2828
ANTHROPIC_MODEL(model?: string) {
2929
if (!model || model.length === 0) {
30-
return 'claude-3-5-sonnet-20240620';
30+
return 'claude-3-5-sonnet-20241022';
3131
}
3232

3333
return model;

src/helpers/llm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export const getSimpleCompletion = async function (options: {
206206
const result = anthropic.messages
207207
.stream({
208208
model:
209-
(model as string) === 'claude' ? 'claude-3-5-sonnet-20240620' : model,
209+
(model as string) === 'claude' ? 'claude-3-5-sonnet-20241022' : model,
210210
max_tokens: 4096,
211211
system: systemMessage?.content as string,
212212
messages: options.messages.filter(

src/helpers/visual-generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export async function visualGenerate(options: RunOptions) {
126126
process.stdout.write(formatMessage('\n'));
127127
anthropic.messages
128128
.stream({
129-
model: ANTHROPIC_MODEL || 'claude-3-5-sonnet-20240620',
129+
model: ANTHROPIC_MODEL || 'claude-3-5-sonnet-20241022',
130130
max_tokens: 4096,
131131
system: systemPrompt,
132132
messages: [

src/helpers/visual-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export async function visualTest(options: RunOptions) {
8787
process.stdout.write(formatMessage('\n'));
8888
anthropic.messages
8989
.stream({
90-
model: 'claude-3-5-sonnet-20240620',
90+
model: 'claude-3-5-sonnet-20241022',
9191
max_tokens: 4096,
9292
messages: [
9393
{

0 commit comments

Comments
 (0)