立即开始
Openrouter Tools

Openrouter Create Chat Completion

通过 Aident Loadout 使用 Openrouter Tools 的 Openrouter Create Chat Completion。执行前查看输入、输出、设置、价格和风险。

写入操作风险等级 2/5API 密钥连接

服务提供商说明

Tool to generate a chat-style completion. Use after assembling messages and selecting a model. Supports streaming and function calls. Response format varies across models; use explicit prompt instructions to standardize output. Provider-level rate limits and moderation policies…

价格与限制

价格
免费操作
统一支付
暂不支持

输入

  • ninteger
    Number of completion choices to generate.
  • stop
    Sequences where the API will stop generating further tokens.
  • userstring
    A unique identifier for the end-user to help detect abuse.
  • modelstring
    必填
    ID of the model to use for the chat completion. Must exactly match an ID returned by OPENROUTER_LIST_AVAILABLE_MODELS; typos or approximate names cause request failures.
  • top_pnumber
    Nucleus sampling probability, between 0 and 1.
  • streamboolean
    Whether to stream back partial message deltas.
  • messagesarray
    必填
    List of conversation messages to provide as context.
  • functionsarray
    List of functions the model may call. Only supported by models that explicitly advertise function-calling capability via OPENROUTER_LIST_AVAILABLE_MODELS. Each function schema must be valid JSON; malformed schemas cause runtime failures regardless of prompt correctness.
  • logit_biasobject
    Adjust the likelihood of specified tokens.
  • max_tokensinteger
    Maximum number of tokens to generate.
  • temperaturenumber
    Sampling temperature to use, between 0 and 2.
  • function_call
    Control function call behavior: 'none', 'auto', or specify {'name': function_name}.

可观察输出

  • data
    必填
    Data from the action execution
  • errorstring
    Error if any occurred during the execution of the action
  • successfulboolean
    必填
    Whether or not the action execution was successful or not

使用此操作的技能

相关使用场景

尚未关联经过验证的相关使用场景。

官方来源

服务提供商来源