Skip to content

Commit 70e0c22

Browse files
committed
updates to release
1 parent cc65aa1 commit 70e0c22

File tree

10 files changed

+31
-5
lines changed

10 files changed

+31
-5
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
.env
2-
2+
__pycache__
3+
*.env
4+
!config/medLLM.env

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1-
## running the end point:
1+
# MedLLM - Using BreakYourLLM to Automate testing through CI/CD pipelines
2+
3+
This is a demo project aimed at showcasing the power of BreakYourLLM in robustly testing our LLM pipelines.
4+
5+
## Installation
6+
```bash
7+
git clone https://github.com/ModelPulse/medLLM.git
8+
cdd medLLM
9+
pip install -r requirements.txt
10+
```
11+
12+
## Running the server:
13+
14+
```bash
215
uvicorn main:app --reload
316
or
417
uvicorn main:app --reload --port 8001
18+
```
519

6-
20+
## Note
21+
- Due to security purposes, we have redacted the API keys in the env files in config folder. Please add your API keys.

__pycache__/main.cpython-312.pyc

-868 Bytes
Binary file not shown.

config/medLLM.env

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
vector_token = ""
2+
eliquis_token = ""
3+
AZURE_ENDPOINT=""
4+
API_VERSION=""
5+
API_KEY=""
6+
MODEL = "gpt-4o"
7+
PARAPHRASE_COUNT = 3
8+
QUESTION_REPETITION_COUNT = 5

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import requests
88

99
# Replace this with your OpenAI API key
10-
load_dotenv(dotenv_path=".env") # Loads the .env file
10+
load_dotenv(dotenv_path="config/medLLM.env") # Loads the .env file
1111

1212
from routers.answer import answer_router
1313
from fastapi.middleware.cors import CORSMiddleware
@@ -21,7 +21,7 @@
2121
# Add CORS middleware
2222
app.add_middleware(
2323
CORSMiddleware,
24-
allow_origins=["http://localhost:3005"], # Or use ["*"] to allow all origins (for development only)
24+
allow_origins=["http://localhost:3000"], # Or use ["*"] to allow all origins (for development only)
2525
allow_credentials=True,
2626
allow_methods=["*"],
2727
allow_headers=["*"],

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ tqdm==4.67.0
2222
typing_extensions==4.12.2
2323
urllib3==2.2.3
2424
uvicorn==0.32.0
25+
pandas
-161 Bytes
Binary file not shown.
-7.1 KB
Binary file not shown.
-6.78 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)