Skip to content

yunqiic/YuanqiJava

Repository files navigation

YuanqiJava

Yuanqi Java SDK

使用SDK

// spring boot, inject agentService
ChatRet result = this.agentService.chat(params);

maven

Maven 引用方式

<dependency>
    <groupId>com.github.zhangchunsheng</groupId>
    <artifactId>yuanqi-java-agent</artifactId>
    <version>1.0.2</version>
</dependency>

腾讯元器

{"choices":[{"finish_reason":"stop","message":{"role":"assistant","content":"Hello! How can I help you today? Is there something specific you would like to discuss or ask about? I'm here to assist you.","steps":[{"role":"assistant","content":"Hello! How can I help you today? Is there something specific you would like to discuss or ask about? I'm here to assist you.","usage":{"prompt_tokens":7.0,"completion_tokens":30.0,"total_tokens":37.0},"time_cost":1660.0}]}}],"assistant_id":"NT61p8m6teGx","usage":{"prompt_tokens":7.0,"completion_tokens":30.0,"total_tokens":37.0},"id":"8814ab0e00504dfef53d2c9c71fea881","created":1717489568}

捐助 donate

支付宝 微信