Skip to content

Commit

Permalink
fix save model config (#4378)
Browse files Browse the repository at this point in the history
Co-authored-by: Cole Blanchard <[email protected]>
Co-authored-by: Daniel Chang <[email protected]>
  • Loading branch information
3 people authored Aug 7, 2024
1 parent 112b790 commit 0965c88
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const getModelConfigurationById = async (id: string): Promise<ModelConfig
};

export const createModelConfiguration = async (modelConfiguration: ModelConfiguration): Promise<ModelConfiguration> => {
delete modelConfiguration.id;
modelConfiguration.temporary = modelConfiguration.temporary ?? false;
const response = await API.post(`/model-configurations`, modelConfiguration);
return response?.data ?? null;
Expand Down

0 comments on commit 0965c88

Please sign in to comment.