Skip to content

Commit 2000dc6

Browse files
committed
include prompt in JSON output
1 parent 867bfdb commit 2000dc6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ The JSON output will have the following structure:
135135

136136
```json
137137
{
138+
"prompt": "<Generated Prompt>",
138139
"directory_name": "codebase",
139140
"token_count": 1234,
140141
"model_info": "ChatGPT models, text-embedding-ada-002",

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ fn main() -> Result<()> {
173173

174174
if args.json {
175175
let json_output = json!({
176+
"prompt": rendered,
176177
"directory_name": label(&args.path),
177178
"token_count": token_count,
178179
"model_info": model_info,

0 commit comments

Comments
 (0)