Skip to content

Commit

Permalink
Change default auth type to authHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
nimsara66 committed Oct 24, 2024
1 parent 1270edf commit 0ad6e8c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default function AddEditAiVendor(props) {
const [saving, setSaving] = useState(false);
const { match: { params: { id } }, history } = props;
const inputSources = ['payload', 'header', 'queryParams'];
const [authSource, setAuthSource] = useState('unsecured');
const [authSource, setAuthSource] = useState('authHeader');
const authSources = ['unsecured', 'authHeader', 'authQueryParameter'];
const [validating, setValidating] = useState(false);
const [file, setFile] = useState(null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function DeleteAiVendor({ updateList, dataRow }) {
.then(() => (
<FormattedMessage
id='AdminPages.AiVendor.Delete.form.delete.successful'
defaultMessage='AI Vendor deleted successfully'
defaultMessage='AI/LLM Vendor deleted successfully'
/>
))
.catch((error) => {
Expand All @@ -53,7 +53,7 @@ function DeleteAiVendor({ updateList, dataRow }) {
<FormDialogBase
title={intl.formatMessage({
id: 'AdminPages.AiVendor.Delete.form.delete.dialog.title',
defaultMessage: 'Delete AI Vendor ?',
defaultMessage: 'Delete AI/LLM Vendor ?',
})}
saveButtonText={intl.formatMessage({
id: 'AdminPages.AiVendor.Delete.form.delete.dialog.btn',
Expand All @@ -70,7 +70,7 @@ function DeleteAiVendor({ updateList, dataRow }) {
<DialogContentText>
<FormattedMessage
id='AdminPages.AiVendor.Delete.form.delete.confirmation.message'
defaultMessage='Are you sure you want to delete this AI Vendor ?'
defaultMessage='Are you sure you want to delete this AI/LLM Vendor ?'
/>
</DialogContentText>
</FormDialogBase>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default function ListAiVendors() {
>
{intl.formatMessage({
id: 'AiVendors.ListAiVendors.addNewAiVendor',
defaultMessage: 'Add AI Vendor',
defaultMessage: 'Add AI/LLM Vendor',
})}
</Button>
);
Expand All @@ -119,7 +119,7 @@ export default function ListAiVendors() {
name: 'name',
label: intl.formatMessage({
id: 'AiVendors.ListAiVendors.table.header.label.aiVendorName',
defaultMessage: 'AI Vendor Name',
defaultMessage: 'AI/LLM Vendor Name',
}),
options: {
customBodyRender: (value, tableMeta) => {
Expand Down Expand Up @@ -214,7 +214,7 @@ export default function ListAiVendors() {
if (dataRow.builtInSupport) {
tooltipTitle = intl.formatMessage({
id: 'AiVendors.ListAiVendors.table.is.used.delete.tooltip',
defaultMessage: 'Default AI Vendors cannot be deleted',
defaultMessage: 'Default AI/LLM Vendors cannot be deleted',
});
}
return (
Expand All @@ -241,7 +241,7 @@ export default function ListAiVendors() {
pageStyle: 'paperLess',
title: intl.formatMessage({
id: 'AiVendors.ListAiVendors.List.title',
defaultMessage: 'AI Vendors',
defaultMessage: 'AI/LLM Vendors',
}),
};

Expand All @@ -255,7 +255,7 @@ export default function ListAiVendors() {
>
<FormattedMessage
id='AdminPages.AiVendors.List.empty.content.Aivendors'
defaultMessage='It is possible to register an AI Vendor.'
defaultMessage='It is possible to register an AI/LLM Vendor.'
/>
</Typography>
),
Expand All @@ -268,7 +268,7 @@ export default function ListAiVendors() {
>
<FormattedMessage
id='AiVendors.ListAiVendors.empty.title'
defaultMessage='AI Vendors'
defaultMessage='AI/LLM Vendors'
/>
</Typography>
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ const RouteMenuMapping = (intl) => [
id: 'Ai Vendors',
displayText: intl.formatMessage({
id: 'Base.RouteMenuMapping.aivendors',
defaultMessage: 'AI Vendors',
defaultMessage: 'AI/LLM Vendors',
}),
path: '/settings/ai-vendors',
component: AiVendors,
Expand All @@ -249,15 +249,15 @@ const RouteMenuMapping = (intl) => [
id: 'Add AI Vendor',
displayText: intl.formatMessage({
id: 'Base.RouteMenuMapping.aivendors.items.Adding',
defaultMessage: 'Add AI Vendor',
defaultMessage: 'Add AI/LLM Vendor',
}),
path: '/settings/ai-vendors/create',
},
{
id: 'Edit AI Vendor',
displayText: intl.formatMessage({
id: 'Base.RouteMenuMapping.aivendors.items.Editing',
defaultMessage: 'Edit AI Vendor',
defaultMessage: 'Edit AI/LLM Vendor',
}),
path: '/settings/ai-vendors/(.*?)$',
},
Expand Down

0 comments on commit 0ad6e8c

Please sign in to comment.