Skip to content

Commit 877983c

Browse files
committed
Bump version; update LinkedIn response and CORS
Bump package version to 2.2.4. Modify the cached LinkedIn prompt response payload to expose 'prompt_id' (instead of 'id') and remove the 'record_data' field. Add http://localhost:2027 to the CORS allow_origins list to permit an additional local dev origin.
1 parent 1bceae4 commit 877983c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""Python - FastAPI, Postgres, tsvector"""
22

33
# Current Version
4-
__version__ = "2.2.3"
4+
__version__ = "2.2.4"

app/api/prompt/linkedin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,12 @@ def linkedin_prompt_success(payload: dict, api_key: str = Depends(get_api_key))
8484
"meta": make_meta("success", "LinkedIn URL already analysed"),
8585
"data": {
8686
"cached": True,
87-
"id": row[0],
87+
"prompt_id": row[0],
8888
"linkedin_url": linkedin_url,
8989
"prompt": row[1],
9090
"completion": row[2],
9191
"time": row[3].isoformat() if row[3] else None,
9292
"model": row[4],
93-
"record_data": row[5],
9493
},
9594
}
9695

app/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
CORSMiddleware,
1818
allow_origins=[
1919
"http://localhost:1999",
20+
"http://localhost:2027",
2021
"https://goldlabel.pro",
2122
"https://free.goldlabel.pro",
2223
],

0 commit comments

Comments
 (0)