Repository navigation
Commit a584264
committed
Standardize commit message format in API prompts and extract response content
- Update build-commit-message-prompt.ts to include commit_message_format in the api_prompt, and add the regex extraction logic for "**Commit message:**" to generate-commit-message-with-api.ts so the prefix is consistently requested and explicitly stripped.
└── apps
└── editor
└── src
├── commands
│ └── generate-commit-message-commands
│ ├── generate-commit-message-commands.ts
│ └── utils
│ ├── build-commit-message-prompt.ts
│ ├── generate-commit-message-with-api.ts
│ └── strip-wrapping-quotes.ts
├── constants
│ └── instructions.ts
└── utils
└── send-llm-message.ts1 parent 9568cf8 commit a584264
3 files changed
Lines changed: 8 additions & 2 deletions
File tree
- apps/editor/src/commands/generate-commit-message-commands/utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
79 | 85 | | |
80 | 86 | | |
81 | 87 | | |
| |||
0 commit comments