## TL;DR

Reporter sergejsrk confirmed: 'the issue has been resolved. when Together examples fail while docs work, upgrade the together client first.

## Steps

1. Reporter sergejsrk confirmed: 'the issue has been resolved. It was related to using an outdated client-side library... (when using the latest client-side library) everything works correctly'.

2. when Together examples fail while docs work, upgrade the together client first.

## When to use

You are seeing this: Issue togethercomputer/together-python#187 (closed, 2 comments): The basic chat-completions example from docs.together.ai (from together import Together; client.chat.completions.create(model='meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo',...)) failed for... Use this skill when you run into "Example from documentation does not work".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
