Morph V3 Fast (batch)
Подключается через OpenAI-совместимый API: укажи этот ID в поле model. Без подписки, оплата только за токены.
Возможности
- Принимает
- текст
- Отвечает
- текст
- Контекст
- 82K
Описание
Morph V3 Fast (batch) - языковая модель от Morph. Принимает: текст. Отвечает: текст. Контекст - 82K токенов.
Описание поставщика, на английскомСвернуть описание поставщика
Morph's fastest apply model for code edits. ~10,500 tokens/sec with 96% accuracy for rapid code transformations. The model requires the prompt to be in the following format: <instruction>{instruction}</instruction> <code>{initial_code}</code> <update>{edit_snippet}</update>...
Как подключить
from openai import OpenAI
client = OpenAI(
base_url="https://velisityapi.com/v1",
api_key="<VELISITY_API_KEY>",
)
response = client.chat.completions.create(
model="morph/morph-v3-fast:batch",
messages=[{"role": "user", "content": "Привет!"}],
)
print(response.choices[0].message.content)
curl https://velisityapi.com/v1/chat/completions \
-H "Authorization: Bearer <VELISITY_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"model": "morph/morph-v3-fast:batch",
"messages": [{"role": "user", "content": "Привет!"}]}'