Последний класс моделей от Meta (Llama 3.1) был выпущен с различными размерами и вариантами. Эта версия с 70 миллиардами параметров, настроенная для инструкций, оптимизирована для высококачественных диалоговых задач. В ходе человеческих оценок она продемонстрировала высокую производительность по сравнению с ведущими закрытыми моделями. Чтобы узнать больше о выпуске модели, [нажмите здесь](https://ai.meta.com/blog/meta-llama-3-1/). Использование этой модели регулируется [Политикой приемлемого использования Meta](https://llama.meta.com/llama3/use-policy/).
from openai import OpenAI
client = OpenAI(
base_url="https://infergate.ru/api/v1",
api_key="sk-•••",
)
resp = client.chat.completions.create(
model="meta-llama/llama-3.1-70b-instruct",
messages=[{"role": "user", "content": "Привет!"}],
)
print(resp.choices[0].message.content)modelstringобязательныйmessagesarrayобязательныйtemperaturenumbermax_tokensintegertop_pnumbertop_kintegermin_pnumberstopstring | string[]frequency_penaltynumberpresence_penaltynumberrepetition_penaltynumberseedintegerlogit_biasobjectlogprobsbooleantop_logprobsintegerresponse_formatobjectstructured_outputsbooleantoolsarraytool_choicestring | object