大模型连接器客户端接口

Hierarchy

  • LLMClient

Methods

Methods

  • Parameters

    • message: Message[]

      对话内容数组,例如 [ {"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "Hello!"}, {"role": "assistant", "content": "Hello! How can I assist you today "} ]

    • config: Config

      模型配置参数,例如 { "temperature" : 1.0, "top_p" : 1.0, "presence_penalty" : 0.0 }

    Returns Dict