OpenAI Chat API 一些参数怎么翻译? - V2EX
请不要在回答技术问题时复制粘贴 AI 生成的内容
x77

OpenAI Chat API 一些参数怎么翻译?

  •  
  •   x77 Jul 18, 2023 1921 views
    This topic created in 1030 days ago, the information mentioned may be changed or developed.

    下图是设置 API 参数值的界面,左边是暂时翻译,中间是值,右边调整。参数的官方原文在这里,求更容易理解的说法

    model / 模型和最大代币数:
    这个参数就是 OpenAI 的模型,不过中间数值是该模型的最大 Token 。

    temperature / 创造性:
    What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.

    top-p / 准确性:
    An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.

    max-tokens-completion / 单次回复可以消耗的最大代币数:
    The maximum number of tokens to generate in the chat completion. The total length of input tokens and generated tokens is limited by the model's context length. Example Python code for counting tokens.

    presence-penalty / 话题分散性:
    Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.

    frequency-penalty / 强调观点:
    Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.

    5 replies    2023-07-19 16:03:43 +08:00
    airyland
        1
    airyland  
       Jul 18, 2023 nbsp; 1
    一般会把 temperature 译为思维发散性。
    shinyzhu
        2
    shinyzhu  
       Jul 19, 2023
    能调 API 的都直接给原文。
    lovestudykid
        3
    lovestudykid  
       Jul 19, 2023
    直译最好
    fakeJas0n
        4
    fakeJas0n  
       Jul 19, 2023
    x77
        5
    x77  
    OP
       Jul 19, 2023
    @fakeJas0n

    微软云的文档没见简短描述啊,只看到那个较长的参数含义说明
    About     Help     Advertise     Blog     API     FAQ     Solana     1475 Online   Highest 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 39ms UTC 16:51 PVG 00:51 LAX 09:51 JFK 12:51
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86