xyz.felh.baidu.BaiduAiApi Maven / Gradle / Ivy
package xyz.felh.baidu;
import io.reactivex.rxjava3.core.Single;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Path;
import xyz.felh.baidu.chat.ChatCompletion;
import xyz.felh.baidu.chat.CreateChatCompletionRequest;
/**
* Retrofit2 API interface
*/
public interface BaiduAiApi {
@POST("/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model_id}")
Single chat(@Path("model_id") String modelId, @Body CreateChatCompletionRequest request);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy