Skip to content

Commit fb3b996

Browse files
authored
📦 NEW: TogetherAI tool call support (#55)
1 parent b4e5ac0 commit fb3b996

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎packages/baseai/src/dev/llms/call-together.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { GROQ } from '../data/models';
44
import { applyJsonModeIfEnabled, handleLlmError } from './utils';
55
import type { Message } from 'types/pipe';
66
import type { ModelParams } from 'types/providers';
7+
import { addToolsToParams } from '../utils/add-tools-to-params';
78

89
export 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);

0 commit comments

Comments
 (0)