File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
packages/baseai/src/dev/llms Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { GROQ } from '../data/models';
44import { applyJsonModeIfEnabled , handleLlmError } from './utils' ;
55import type { Message } from 'types/pipe' ;
66import type { ModelParams } from 'types/providers' ;
7+ import { addToolsToParams } from '../utils/add-tools-to-params' ;
78
89export async function callTogether ( {
910 pipe,
@@ -28,6 +29,7 @@ export async function callTogether({
2829 // Together behaves weirdly with stop value. Omitting it.
2930 delete modelParams [ 'stop' ] ;
3031 applyJsonModeIfEnabled ( modelParams , pipe ) ;
32+ addToolsToParams ( modelParams , pipe ) ;
3133 dlog ( 'modelParams' , modelParams ) ;
3234
3335 return await together . chat . completions . create ( modelParams as any ) ;
You can’t perform that action at this time.
0 commit comments