mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
Test parse cite and add tool call parallel (#4737)
* add quote response filter (#4727) * chatting * add quote response filter * add test * remove comment * perf: cite hidden * perf: format llm response * feat: comment * update default chunk size * update default chunk size --------- Co-authored-by: heheer <heheer@sealos.io>
This commit is contained in:
@@ -16,7 +16,7 @@ describe('Markdown utils', () => {
|
||||
|
||||
it('should convert quote references to proper markdown links', () => {
|
||||
const input = '[123456789012345678901234]';
|
||||
const expected = '[123456789012345678901234](QUOTE)';
|
||||
const expected = '[123456789012345678901234](CITE)';
|
||||
expect(mdTextFormat(input)).toBe(expected);
|
||||
});
|
||||
|
||||
@@ -35,7 +35,7 @@ describe('Markdown utils', () => {
|
||||
const input =
|
||||
'Math \\[x^2\\] with link https://test.com,and quote [123456789012345678901234]';
|
||||
const expected =
|
||||
'Math $$x^2$$ with link https://test.com ,and quote [123456789012345678901234](QUOTE)';
|
||||
'Math $$x^2$$ with link https://test.com ,and quote [123456789012345678901234](CITE)';
|
||||
expect(mdTextFormat(input)).toBe(expected);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user