Skip to content

Commit

Permalink
fix: portkey integration
Browse files Browse the repository at this point in the history
  • Loading branch information
sk-portkey committed Jan 13, 2025
1 parent c91433e commit e4a36c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/providers/bedrock/uploadFile.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Options } from '../../types/requestBody';

import crypto from 'crypto';
import crypto from 'node:crypto';
import { getBoundaryFromContentType } from '../../handlers/streamHandlerUtils';
import { BedrockUploadFileConfig } from './uploadFileUtils';
import { transformUsingProviderConfig } from '../../services/transformToProviderRequest';
Expand Down
2 changes: 1 addition & 1 deletion src/providers/bedrock/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from './chatComplete';
import { Context } from 'hono';
import { env } from 'hono/adapter';
import crypto from 'crypto';
import crypto from 'node:crypto';

const hmac = (key: Buffer | string, data: string) => {
return crypto.createHmac('sha256', key).update(data).digest();
Expand Down
2 changes: 2 additions & 0 deletions src/providers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import QdrantConfig from './qdrant';
import SagemakerConfig from './sagemaker';
import NebiusConfig from './nebius';
import RecraftAIConfig from './recraft-ai';
import PortkeyConfig from './portkey';

const Providers: { [key: string]: ProviderConfigs } = {
openai: OpenAIConfig,
Expand Down Expand Up @@ -104,6 +105,7 @@ const Providers: { [key: string]: ProviderConfigs } = {
sagemaker: SagemakerConfig,
nebius: NebiusConfig,
'recraft-ai': RecraftAIConfig,
portkey: PortkeyConfig,
};

export default Providers;

0 comments on commit e4a36c2

Please sign in to comment.