Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

Google game

  • Нет ответов
  • 0 имеют эту проблему
more options

{

 "choices": [
   {
     "text": "Sure! Here's a search engine optimized article about...",
     "log_probs": null
   }
 ],
 "model": "palmyra-x-003-instruct"

}curl --location --request POST https://api.writer.com/v1/completions \

--header "Authorization: Bearer <token>" \
--header "Content-Type: application/json" \

--data-raw '{"model":"palmyra-x-003-instruct","prompt":"Write me an SEO article about...","max_tokens":150,"temperature":0.7,"top_p":0.9,"stop":["."],"best_of":1,"random_seed":42,"stream":false}'https://api.writer.com/v1/completionsimport Writer from 'writer-sdk';

const client = new Writer({

 apiKey: process.env['WRITER_API_KEY'], // This is the default and can be omitted

});

async function main() {

 const completion = await client.completions.create({
   model: 'palmyra-x-003-instruct',
   prompt: 'Write me an SEO article about...',
 });
 console.log(completion.choices);

}

main();import os from writerai import Writer

client = Writer(

   # This is the default and can be omitted
   api_key=os.environ.get("WRITER_API_KEY"),

) completion = client.completions.create(

   model="palmyra-x-003-instruct",
   prompt="Write me an SEO article about...",

) print(completion.choices)

{ "choices": [ { "text": "Sure! Here's a search engine optimized article about...", "log_probs": null } ], "model": "palmyra-x-003-instruct" }curl --location --request POST https://api.writer.com/v1/completions \ --header "Authorization: Bearer <token>" \ --header "Content-Type: application/json" \ --data-raw '{"model":"palmyra-x-003-instruct","prompt":"Write me an SEO article about...","max_tokens":150,"temperature":0.7,"top_p":0.9,"stop":["."],"best_of":1,"random_seed":42,"stream":false}'https://api.writer.com/v1/completionsimport Writer from 'writer-sdk'; const client = new Writer({ apiKey: process.env['WRITER_API_KEY'], // This is the default and can be omitted }); async function main() { const completion = await client.completions.create({ model: 'palmyra-x-003-instruct', prompt: 'Write me an SEO article about...', }); console.log(completion.choices); } main();import os from writerai import Writer client = Writer( # This is the default and can be omitted api_key=os.environ.get("WRITER_API_KEY"), ) completion = client.completions.create( model="palmyra-x-003-instruct", prompt="Write me an SEO article about...", ) print(completion.choices)
Приложенные скриншоты