Skip to content

Commit 2adc8eb

Browse files
committed
revert changes
1 parent fcf8845 commit 2adc8eb

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/providers/anthropic/messages.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,7 @@ import { AnthropicErrorResponseTransform } from './utils';
66
import { generateInvalidProviderResponseError } from '../utils';
77
import { ANTHROPIC } from '../../globals';
88

9-
export const AnthropicMessagesConfig = getMessagesConfig({
10-
extra: {
11-
anthropic_version: {
12-
param: 'anthropic_version',
13-
required: true,
14-
default: 'vertex-2023-10-16',
15-
},
16-
},
17-
});
9+
export const AnthropicMessagesConfig = getMessagesConfig({});
1810

1911
export const AnthropicMessagesResponseTransform = (
2012
response: MessagesResponse | AnthropicErrorResponse,

src/providers/google-vertex-ai/messages.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@ import { AnthropicErrorResponseTransform } from '../anthropic/utils';
66
import { ErrorResponse } from '../types';
77
import { generateInvalidProviderResponseError } from '../utils';
88

9-
export const VertexAnthropicMessagesConfig = getMessagesConfig({});
9+
export const VertexAnthropicMessagesConfig = getMessagesConfig({
10+
extra: {
11+
anthropic_version: {
12+
param: 'anthropic_version',
13+
required: true,
14+
default: 'vertex-2023-10-16',
15+
},
16+
},
17+
});
1018

1119
export const VertexAnthropicMessagesResponseTransform = (
1220
response: MessagesResponse | AnthropicErrorResponse,

0 commit comments

Comments
 (0)