Skip to content

Commit 7a28914

Browse files
committed
fix ovhcloud response transformers
1 parent f134693 commit 7a28914

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/providers/ovhcloud/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { OVHCLOUD } from '../../globals';
2+
import { responseTransformers } from '../open-ai-base';
13
import OVHcloudAPIConfig from './api';
24
import {
35
OVHcloudChatCompleteConfig,
@@ -7,7 +9,12 @@ import {
79
const OVHcloudConfig = {
810
api: OVHcloudAPIConfig,
911
chatComplete: OVHcloudChatCompleteConfig,
10-
streamChunkTransform: OVHcloudChatCompleteStreamChunkTransform,
12+
responseTransforms: {
13+
...responseTransformers(OVHCLOUD, {
14+
chatComplete: true,
15+
}),
16+
'stream-chatComplete': OVHcloudChatCompleteStreamChunkTransform,
17+
},
1118
};
1219

1320
export default OVHcloudConfig;

0 commit comments

Comments
 (0)