Skip to content

Commit

Permalink
Update src/handlers/replicate.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
zya authored Dec 21, 2023
1 parent 63b4cc1 commit e44c466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/replicate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export async function ReplicateHandler(
): Promise<ResultNotStreaming | ResultStreaming> {
const api_key = params.api_key ?? process.env.REPLICATE_API_KEY;
const replicate = new Replicate({
auth: api_key,
auth: apiKey,
});
const model = params.model.split('replicate/')[1];
const version = model.split(':')[1];
Expand Down

0 comments on commit e44c466

Please sign in to comment.