Skip to content

Commit

Permalink
feat: add unit for price
Browse files Browse the repository at this point in the history
  • Loading branch information
OrenZhang committed Jul 4, 2024
1 parent 6f2b7ea commit 9a09975
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/ChatInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const promptForm = ref({
// store
const store = useStore();
const walletConfig = computed(() => store.state.walletConfig);
// model
const currentModel = ref('');
Expand All @@ -55,12 +56,12 @@ const previewModelData = computed(() => {
return [
{
label: i18n.t('PromptUnitPrice'),
value: model.value.prompt_price,
value: model.value.prompt_price ? `${model.value.prompt_price}${walletConfig.value.unit}` : '',
span: 1,
},
{
label: i18n.t('CompletionUnitPrice'),
value: model.value.completion_price,
value: model.value.completion_price ? `${model.value.completion_price}${walletConfig.value.unit}` : '',
span: 1,
},
];
Expand Down

0 comments on commit 9a09975

Please sign in to comment.