File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -438,6 +438,7 @@ describe('doGenerate', () => {
438438 {
439439 type : 'function' ,
440440 name : 'test-tool' ,
441+ description : 'Test tool' ,
441442 inputSchema : {
442443 type : 'object' ,
443444 properties : { value : { type : 'string' } } ,
@@ -461,7 +462,7 @@ describe('doGenerate', () => {
461462 type : 'function' ,
462463 function : {
463464 name : 'test-tool' ,
464- description : 'function ' ,
465+ description : 'Test tool ' ,
465466 parameters : {
466467 type : 'object' ,
467468 properties : { value : { type : 'string' } } ,
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ export class OpenRouterChatLanguageModel implements LanguageModelV2 {
167167 type : 'function' as const ,
168168 function : {
169169 name : tool . name ,
170- description : tool . type ,
170+ description : tool . description ,
171171 parameters : tool . inputSchema ,
172172 } ,
173173 } ) ) ;
You can’t perform that action at this time.
0 commit comments