Skip to content

Commit ee6b4be

Browse files
committed
Bump version and rename first_record to top_record
Update __version__ to 3.0.8. Modify get_prompt_table_metadata response structure: rename the returned key from "first_record" to "top_record" and enable inclusion of the "prompt" and "completion" fields (previously commented out) so the API returns full top record details.
1 parent 1c8b5e7 commit ee6b4be

2 files changed

Lines changed: 4 additions & 4 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.7"
4+
__version__ = "3.0.8"

app/api/prompt/prompt.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ def get_prompt_table_metadata(api_key: str = Depends(get_api_key)) -> dict:
4141
return {
4242
"meta": meta,
4343
"data": {
44-
"first_record": {
44+
"top_record": {
4545
"id": top_row[0],
46-
# "prompt": top_row[1],
47-
# "completion": top_row[2],
46+
"prompt": top_row[1],
47+
"completion": top_row[2],
4848
"time": top_row[3].isoformat() if top_row and top_row[3] else None,
4949
"model": top_row[4],
5050
} if top_row else None,

0 commit comments

Comments
 (0)