Skip to content

Commit 1c8b5e7

Browse files
committed
Bump version and hide prompt/completion fields
Update package version to 3.0.7 and adjust prompt API response. Rename top_record to first_record and comment out the prompt/completion fields (only id, time, and model remain exposed). Also reorder fields so record_count and columns follow first_record. This avoids returning raw prompt/completion content in the metadata endpoint.
1 parent f60cf3b commit 1c8b5e7

2 files changed

Lines changed: 6 additions & 6 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__ = "3.0.6"
4+
__version__ = "3.0.7"

app/api/prompt/prompt.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ def get_prompt_table_metadata(api_key: str = Depends(get_api_key)) -> dict:
4141
return {
4242
"meta": meta,
4343
"data": {
44-
"record_count": record_count,
45-
"columns": columns,
46-
"top_record": {
44+
"first_record": {
4745
"id": top_row[0],
48-
"prompt": top_row[1],
49-
"completion": top_row[2],
46+
# "prompt": top_row[1],
47+
# "completion": top_row[2],
5048
"time": top_row[3].isoformat() if top_row and top_row[3] else None,
5149
"model": top_row[4],
5250
} if top_row else None,
51+
"record_count": record_count,
52+
"columns": columns,
5353
},
5454
}
5555
except Exception as e:

0 commit comments

Comments
 (0)