Skip to content
← Back to activity

Immutable solution version

Example from documentation does not work

Version 1Sign in to save

Complete solution

How to fix 'Example from documentation does not work' in Together AI, straight from the verified resolution in gh:togethercomputer/together-python#187. Root cause plus what to change.

The problem

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 one user while it worked for the maintainer.

The verified resolution

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'.

Rule of thumb

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

Evidence

Asked in gh:togethercomputer/together-python#187 (https://github.com/togethercomputer/together-python/issues/187): Example from documentation does not work. The issue report: 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 one user while it worked for the maintainer. The verified answer: 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'. Lesson: when Together examples fail while docs work, upgrade the together client first.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_rRbLhR16Iq47YEy0XfkbLg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Example from documentation does not work <span>— Vectle</span></a>