(input)
| 79268 | requestOptions |
| 79269 | ); |
| 79270 | const responseJson = await response.json(); |
| 79271 | const enhancedResponse = addHelpers(responseJson); |
| 79272 | return { |
| 79273 | response: enhancedResponse |
| 79274 | }; |
| 79275 | } |
| 79276 | function formatSystemInstruction(input) { |
| 79277 | if (input == null) { |
| 79278 | return void 0; |
| 79279 | } else if (typeof input === "string") { |
| 79280 | return { role: "system", parts: [{ text: input }] }; |
| 79281 | } else if (input.text) { |
| 79282 | return { role: "system", parts: [input] }; |
| 79283 | } else if (input.parts) { |
| 79284 | if (!input.role) { |
| 79285 | return { role: "system", parts: input.parts }; |
| 79286 | } else { |
| 79287 | return input; |
no outgoing calls
no test coverage detected
searching dependent graphs…