Skip to content

Commit

Permalink
feat(api): add enum to model param for message (#315)
Browse files Browse the repository at this point in the history
also removes claude-3 from text completions enum
  • Loading branch information
stainless-bot committed Mar 6, 2024
1 parent ffb603c commit 0c44de0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/resources/completions.ts
Expand Up @@ -94,7 +94,7 @@ export interface CompletionCreateParamsBase {
* See [models](https://docs.anthropic.com/claude/docs/models-overview) for
* additional details and options.
*/
model: (string & {}) | 'claude-3-opus-20240229' | 'claude-2.1' | 'claude-instant-1';
model: (string & {}) | 'claude-2.0' | 'claude-2.1' | 'claude-instant-1.2';

/**
* The prompt that you want Claude to complete.
Expand Down
16 changes: 14 additions & 2 deletions src/resources/messages.ts
Expand Up @@ -390,7 +390,13 @@ export interface MessageCreateParamsBase {
* See [models](https://docs.anthropic.com/claude/docs/models-overview) for
* additional details and options.
*/
model: string;
model:
| (string & {})
| 'claude-3-opus-20240229'
| 'claude-3-sonnet-20240229'
| "claude-2.1'"
| 'claude-2.0'
| 'claude-instant-1.2';

/**
* An object describing metadata about the request.
Expand Down Expand Up @@ -610,7 +616,13 @@ export interface MessageStreamParams {
* See [models](https://docs.anthropic.com/claude/docs/models-overview) for
* additional details and options.
*/
model: string;
model:
| (string & {})
| 'claude-3-opus-20240229'
| 'claude-3-sonnet-20240229'
| "claude-2.1'"
| 'claude-2.0'
| 'claude-instant-1.2';

/**
* An object describing metadata about the request.
Expand Down

0 comments on commit 0c44de0

Please sign in to comment.