Skip to content

Commit cd517ab

Browse files
📦 NEW: Add claude-3.5-sonnet-latest (#79)
1 parent 205e82e commit cd517ab

File tree

6 files changed

+36
-6
lines changed

6 files changed

+36
-6
lines changed

‎apps/baseai.dev/content/docs/docs/supported-models-and-providers.mdx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,14 @@ Learn more about [using Ollama models](/docs/guides/using-ollama-models) in Base
9595

9696
### Anthropic
9797

98-
| Model | Provider | Owner | Context | Cost* |
99-
|---------------------------------------------------------------------------------------------|-----------|-----------|---------|---------------------------------------------|
100-
| claude-3.5-sonnet <br/> ID: <InlineCopy content="anthropic:claude-3-5-sonnet-20240620" /> | Anthropic | Anthropic | 200K | $3 prompt <br/> $15 completion |
101-
| claude-3-opus <br/> ID: <InlineCopy content="anthropic:claude-3-opus-20240229" /> | Anthropic | Anthropic | 200K | $15 prompt <br/> $75 completion |
102-
| claude-3-sonnet <br/> ID: <InlineCopy content="anthropic:claude-3-sonnet-20240229" /> | Anthropic | Anthropic | 200K | $3 prompt <br/> $15 completion |
103-
| claude-3-haiku <br/> ID: <InlineCopy content="anthropic:claude-3-haiku-20240307" /> | Anthropic | Anthropic | 200K | $0.25 prompt <br/> $1.25 completion |
98+
| Model | Provider | Owner | Context | Cost* |
99+
|------------------------------------------------------------------------------------------------------|-----------|-----------|---------|---------------------------------------------|
100+
| claude-3.5-sonnet-latest <br/> ID: <InlineCopy content="anthropic:claude-3-5-sonnet-latest" /> | Anthropic | Anthropic | 200K | $3 prompt <br/> $15 completion |
101+
| claude-3.5-sonnet-20240620 <br/> ID: <InlineCopy content="anthropic:claude-3-5-sonnet-20240620" /> | Anthropic | Anthropic | 200K | $3 prompt <br/> $15 completion |
102+
| claude-3-opus <br/> ID: <InlineCopy content="anthropic:claude-3-opus-20240229" /> | Anthropic | Anthropic | 200K | $15 prompt <br/> $75 completion |
103+
| claude-3-sonnet <br/> ID: <InlineCopy content="anthropic:claude-3-sonnet-20240229" /> | Anthropic | Anthropic | 200K | $3 prompt <br/> $15 completion |
104+
| claude-3-haiku <br/> ID: <InlineCopy content="anthropic:claude-3-haiku-20240307" /> | Anthropic | Anthropic | 200K | $0.25 prompt <br/> $1.25 completion |
105+
104106

105107
<span className='text-xs'>* USD per Million tokens</span>
106108

‎packages/baseai/src/data/models.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,16 @@ export const modelsByProvider: ModelsByProviderInclCosts = {
365365
}
366366
],
367367
[ANTHROPIC]: [
368+
{
369+
id: 'claude-3-5-sonnet-latest',
370+
provider: ANTHROPIC,
371+
promptCost: 3,
372+
completionCost: 15,
373+
toolSupport: {
374+
toolChoice: true,
375+
parallelToolCalls: true
376+
}
377+
},
368378
{
369379
id: 'claude-3-5-sonnet-20240620',
370380
provider: ANTHROPIC,

‎packages/baseai/src/dev/data/models.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,16 @@ export const modelsByProvider: ModelsByProviderInclCosts = {
285285
}
286286
],
287287
[ANTHROPIC]: [
288+
{
289+
id: 'claude-3-5-sonnet-latest',
290+
provider: ANTHROPIC,
291+
promptCost: 3,
292+
completionCost: 15,
293+
toolSupport: {
294+
toolChoice: true,
295+
parallelToolCalls: true
296+
}
297+
},
288298
{
289299
id: 'claude-3-5-sonnet-20240620',
290300
provider: ANTHROPIC,

‎packages/baseai/types/model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export type TogetherModels =
3232
| 'together:databricks/dbrx-instruct';
3333

3434
export type AnthropicModels =
35+
| 'anthropic:claude-3-5-sonnet-latest'
3536
| 'anthropic:claude-3-5-sonnet-20240620'
3637
| 'anthropic:claude-3-opus-20240229'
3738
| 'anthropic:claude-3-sonnet-20240229'

‎packages/core/src/data/models.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,12 @@ export const modelsByProvider: ModelsByProviderInclCosts = {
205205
},
206206
],
207207
[ANTHROPIC]: [
208+
{
209+
id: 'claude-3-5-sonnet-latest',
210+
provider: ANTHROPIC,
211+
promptCost: 3,
212+
completionCost: 15,
213+
},
208214
{
209215
id: 'claude-3-5-sonnet-20240620',
210216
provider: ANTHROPIC,

‎packages/core/types/model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export type TogetherModels =
3232
| 'together:databricks/dbrx-instruct';
3333

3434
export type AnthropicModels =
35+
| 'anthropic:claude-3-5-sonnet-latest'
3536
| 'anthropic:claude-3-5-sonnet-20240620'
3637
| 'anthropic:claude-3-opus-20240229'
3738
| 'anthropic:claude-3-sonnet-20240229'

0 commit comments

Comments
 (0)