We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fa8d39f + 45d35a8 commit caa1096Copy full SHA for caa1096
1 file changed
src/index.ts
@@ -235,10 +235,9 @@ class PerplexityServer {
235
// response.data can have a string[] .citations
236
// these are referred to in the return text as numbered citations e.g. [1]
237
const sourcesText = response.data.citations
238
- ? `\n## Sources\nPlease keep the numbered citations inline.\n
239
- ${response.data.citations
240
- .map((c: string, i: number) => `${i + 1}: ${c}`)
241
- .join("\n")}`
+ ? `\n\n## Sources\nPlease keep the numbered citations inline.\n${response.data.citations
+ .map((c: string, i: number) => `${i + 1}: ${c}`)
+ .join("\n")}`
242
: "";
243
244
return {
0 commit comments