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';
4
4
import { applyJsonModeIfEnabled , handleLlmError } from './utils' ;
5
5
import type { Message } from 'types/pipe' ;
6
6
import type { ModelParams } from 'types/providers' ;
7
+ import { addToolsToParams } from '../utils/add-tools-to-params' ;
7
8
8
9
export async function callTogether ( {
9
10
pipe,
@@ -28,6 +29,7 @@ export async function callTogether({
28
29
// Together behaves weirdly with stop value. Omitting it.
29
30
delete modelParams [ 'stop' ] ;
30
31
applyJsonModeIfEnabled ( modelParams , pipe ) ;
32
+ addToolsToParams ( modelParams , pipe ) ;
31
33
dlog ( 'modelParams' , modelParams ) ;
32
34
33
35
return await together . chat . completions . create ( modelParams as any ) ;
You can’t perform that action at this time.
0 commit comments