Skip to content

Commit

Permalink
Merge pull request #1094 from zhx828/add-aiml-clarification
Browse files Browse the repository at this point in the history
Add term related to AI model usage
  • Loading branch information
zhx828 authored Apr 5, 2024
2 parents f75109d + 109481d commit 104c98d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import {
SHORT_TEXT_VAL,
TEXT_VAL,
} from 'app/shared/utils/FormValidationUtils';
import { NOT_USED_IN_AI_MODELS } from 'app/config/constants/terms';

export enum FormSection {
LICENSE = 'LICENSE',
Expand Down Expand Up @@ -746,6 +747,9 @@ export class NewAccountForm extends React.Component<INewAccountForm> {
</AvCheckboxGroup>
{this.apiAccessRequested && (
<div className="mt-2">
<b style={{ fontSize: '0.8rem', lineHeight: '1' }}>
{NOT_USED_IN_AI_MODELS}
</b>
<AvField
name={FormKey.API_ACCESS_JUSTIFICATION}
placeholder={
Expand Down
5 changes: 5 additions & 0 deletions src/main/webapp/app/config/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,7 @@ export enum TERM_DEFINITION {
ONLY_ACADEMIC_USAGE = 'ONLY_ACADEMIC_USAGE',
NO_COMPANY_USAGE = 'NO_COMPANY_USAGE',
OK_WITH_TERMS_OF_USE = 'OK_WITH_TERMS_OF_USE',
NOT_USED_IN_AI_MODELS = 'NOT_USED_IN_AI_MODELS',
}

export const FDA_RECOGNITION_DISCLAIMER: React.FunctionComponent<{
Expand Down Expand Up @@ -772,6 +773,10 @@ export const ACADEMIC_TERMS = [
key: TERM_DEFINITION.ONLY_ACADEMIC_USAGE,
description: `I agree that my use of ${ONCOKB_TM} is solely for research or educational purposes.`,
},
{
key: TERM_DEFINITION.NOT_USED_IN_AI_MODELS,
description: `I confirm that I will NOT use ${ONCOKB_TM} data for the purpose of creating and training AI models.`,
},
{
key: TERM_DEFINITION.NO_COMPANY_USAGE,
description: `I confirm that I will NOT use ${ONCOKB_TM} data for use in medical reports or in an electronic health care system.`,
Expand Down
3 changes: 3 additions & 0 deletions src/main/webapp/app/config/constants/terms.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { ONCOKB_TM } from 'app/config/constants';

export const NOT_USED_IN_AI_MODELS = `Using ${ONCOKB_TM} data for the creation and training of AI models is strictly prohibited. Access may be granted for model validation or benchmarking purposes only with explicit authorization. We will review your justification below and contact you accordingly. For other purposes, we will review and approve as appropriate.`;
4 changes: 4 additions & 0 deletions src/main/webapp/app/pages/AccountPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import InfoIcon from 'app/shared/icons/InfoIcon';
import TokenInputGroups from 'app/components/tokenInputGroups/TokenInputGroups';
import client from 'app/shared/api/clientInstance';
import { SimpleConfirmModal } from 'app/shared/modal/SimpleConfirmModal';
import { NOT_USED_IN_AI_MODELS } from 'app/config/constants/terms';

export type IRegisterProps = {
authenticationStore: AuthenticationStore;
Expand Down Expand Up @@ -272,6 +273,9 @@ export class AccountPage extends React.Component<IRegisterProps> {
title="Request API Access"
body={
<>
<span>{NOT_USED_IN_AI_MODELS}</span>
<br />
<br />
<p>Please provide a justification for your API access request.</p>
<textarea
className="form-control"
Expand Down

0 comments on commit 104c98d

Please sign in to comment.