Solution skill
Example from documentation does not work
Complete solution
Shows how to fix example from documentation does not work. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Reporter sergejsrk confirmed: 'the issue has been resolved. when Together examples fail while docs work, upgrade the together client first.
Steps
- 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'.
- 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.
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 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
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>