SimpleChatTC:Pdf2Text: Refine desc and MaxResultDataLength
Needed to tweak the description further for the ai model to be able to understand that its ok to pass file:// scheme based urls Had forgotten how big the web site pages have become as also the need for more ResultDataLength wrt one shot PDF read to get atleast some good enough amount of content in it with large pdfs
This commit is contained in:
parent
21544eaf87
commit
e077f23f9e
|
|
@ -1344,7 +1344,7 @@ class Me {
|
||||||
* Control the length of the tool call result data returned to ai after tool call.
|
* Control the length of the tool call result data returned to ai after tool call.
|
||||||
* A value of 0 is treated as unlimited data.
|
* A value of 0 is treated as unlimited data.
|
||||||
*/
|
*/
|
||||||
iResultMaxDataLength: 2048,
|
iResultMaxDataLength: 1024*128,
|
||||||
/**
|
/**
|
||||||
* Control how many milliseconds to wait for tool call to respond, before generating a timed out
|
* Control how many milliseconds to wait for tool call to respond, before generating a timed out
|
||||||
* error response and giving control back to end user.
|
* error response and giving control back to end user.
|
||||||
|
|
|
||||||
|
|
@ -278,13 +278,13 @@ let pdf2text_meta = {
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"function": {
|
"function": {
|
||||||
"name": "pdf2text",
|
"name": "pdf2text",
|
||||||
"description": "Read pdf from requested local file / web url through a proxy server and return its text content after converting pdf to text, in few seconds",
|
"description": "Read pdf from requested local file path / web url through a proxy server and return its text content after converting pdf to text, in few seconds",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"url":{
|
"url":{
|
||||||
"type":"string",
|
"type":"string",
|
||||||
"description":"local file path / web (http/https) based url of the pdf that will be got and inturn converted to text to an extent"
|
"description":"local file path (file://) / web (http/https) based url of the pdf that will be got and inturn converted to text to an extent"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["url"]
|
"required": ["url"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue