File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ const handleRuleExtraction = async (guid: string) => {
7171
7272const fetchRiskDataWithSources = async ( medication : string , source : "include" | "diagnosis" = "include" ) => {
7373 try {
74- const response = await adminApi . post ( `/v1/api/riskWithSources` , {
74+ const response = await publicApi . post ( `/v1/api/riskWithSources` , {
7575 drug : medication ,
7676 source : source ,
7777 } ) ;
Original file line number Diff line number Diff line change 11from rest_framework .views import APIView
22from rest_framework .response import Response
33from rest_framework import status
4+ from rest_framework .permissions import AllowAny
45from api .views .listMeds .models import Medication
56from api .models .model_medRule import MedRule , MedRuleSource
67import openai
78import os
89
910
1011class RiskWithSourcesView (APIView ):
12+ permission_classes = [AllowAny ]
13+
1114 def post (self , request ):
1215 openai .api_key = os .environ .get ("OPENAI_API_KEY" )
1316
You can’t perform that action at this time.
0 commit comments