Skip to content

Commit

Permalink
🐛fix: Failed to get provider model list.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartialBE committed Sep 23, 2024
1 parent 9a3bd01 commit c08fbe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/views/Channel/component/EditModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const EditModal = ({ open, channelId, onCancel, onOk, groupOptions, isTag }) =>
const getProviderModels = async (values, setFieldValue) => {
setProviderModelsLoad(true);
try {
const res = await API.post(`/api/channel/provider_models_list`, { ...values, models: '' });
const res = await API.post(`/api/channel/provider_models_list`, { ...values, models: '', model_mapping: '' });
const { success, message, data } = res.data;
if (success && data) {
let uniqueModels = Array.from(new Set(data));
Expand Down

0 comments on commit c08fbe7

Please sign in to comment.