搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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)
附加的畫面擷圖