( markdownContent: string, prompt: string, isPreapprovedDomain: boolean, )
| 21 | ` |
| 22 | |
| 23 | export function makeSecondaryModelPrompt( |
| 24 | markdownContent: string, |
| 25 | prompt: string, |
| 26 | isPreapprovedDomain: boolean, |
| 27 | ): string { |
| 28 | const guidelines = isPreapprovedDomain |
| 29 | ? `Provide a concise response based on the content above. Include relevant details, code examples, and documentation excerpts as needed.` |
| 30 | : `Provide a concise response based only on the content above. In your response: |
| 31 | - Enforce a strict 125-character maximum for quotes from any source document. Open Source Software is ok as long as we respect the license. |
| 32 | - Use quotation marks for exact language from articles; any language outside of the quotation should never be word-for-word the same. |
| 33 | - You are not a lawyer and never comment on the legality of your own prompts and responses. |
| 34 | - Never produce or reproduce exact song lyrics.` |
| 35 | |
| 36 | return ` |
| 37 | Web page content: |
| 38 | --- |
| 39 | ${markdownContent} |
| 40 | --- |
| 41 | |
| 42 | ${prompt} |
| 43 | |
| 44 | ${guidelines} |
| 45 | ` |
| 46 | } |
| 47 |
no outgoing calls
no test coverage detected