Skip to content

Commit

Permalink
fix missing parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
au-re committed Oct 15, 2023
1 parent d0f35dc commit 08b7c31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@pufflig/ps-sdk/src/createCompletion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface Completion {
}

export async function createCompletion(input: CreateCompletionInput, callbacks?: Callbacks): Promise<Completion> {
const { modelId, prompt, apiKey, config, options } = input;
const { modelId, prompt, apiKey, config, options, parameters = {} } = input;

const payload: AxiosRequestConfig = {
method: "post",
Expand All @@ -36,6 +36,7 @@ export async function createCompletion(input: CreateCompletionInput, callbacks?:
data: {
modelId,
prompt: prompt,
parameters,
},
};

Expand Down

0 comments on commit 08b7c31

Please sign in to comment.