From 2753eb08956dd5d2117f75d5ff8eb5c411b247db Mon Sep 17 00:00:00 2001 From: "cursor-agent[bot]" Date: Wed, 10 Jun 2026 02:20:11 +0000 Subject: [PATCH] DX-596-together-chat-completions: sync with mintlify-docs#954 Update TypeScript multi-step and multi-turn tool-calling examples in references/function-calling-patterns.md to use the typed ChatCompletionMessageParam[] pattern (imported from together-ai/resources/chat/completions) instead of any[], matching the upstream docs update in togethercomputer/mintlify-docs#954. --- .../references/function-calling-patterns.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/skills/together-chat-completions/references/function-calling-patterns.md b/skills/together-chat-completions/references/function-calling-patterns.md index d991939..114c93e 100644 --- a/skills/together-chat-completions/references/function-calling-patterns.md +++ b/skills/together-chat-completions/references/function-calling-patterns.md @@ -386,9 +386,11 @@ print(final.choices[0].message.content) ```typescript import Together from "together-ai"; +import type { ChatCompletionMessageParam } from "together-ai/resources/chat/completions"; + const together = new Together(); -const messages: any[] = [ +const messages: ChatCompletionMessageParam[] = [ { role: "system", content: "You are a helpful assistant that can access external functions.", @@ -479,7 +481,9 @@ response2 = client.chat.completions.create( ``` ```typescript -const messages: any[] = [ +import type { ChatCompletionMessageParam } from "together-ai/resources/chat/completions"; + +const messages: ChatCompletionMessageParam[] = [ { role: "system", content: "You are a travel planning assistant." }, ];