()
| 52 | } |
| 53 | |
| 54 | private requestHeaders(): Record<string, string> { |
| 55 | const headers: Record<string, string> = { |
| 56 | [X_AXONCODE_TASKID]: this.options.taskId, |
| 57 | }; |
| 58 | if (this.options.organizationId) |
| 59 | headers[X_ORGANIZATIONID] = this.options.organizationId; |
| 60 | if (this.options.repo) headers[X_AXON_REPO] = this.options.repo; |
| 61 | return headers; |
| 62 | } |
| 63 | |
| 64 | async *createMessage( |
| 65 | systemPrompt: string, |