public interface Api
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_API_HOST |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<ChatCompletionResponse> |
chatCompletion(ChatCompletion chatCompletion)
chat
|
io.reactivex.Single<CreditGrantsResponse> |
creditGrants()
余额查询
|
io.reactivex.Single<SubscriptionData> |
subscription()
余额查询
|
io.reactivex.Single<UseageResponse> |
usage(String startDate,
String endDate)
余额查询
|
static final String DEFAULT_API_HOST
@POST(value="v1/chat/completions") io.reactivex.Single<ChatCompletionResponse> chatCompletion(@Body ChatCompletion chatCompletion)
@GET(value="dashboard/billing/credit_grants") io.reactivex.Single<CreditGrantsResponse> creditGrants()
@GET(value="v1/dashboard/billing/subscription") io.reactivex.Single<SubscriptionData> subscription()
@GET(value="v1/dashboard/billing/usage") io.reactivex.Single<UseageResponse> usage(@Query(value="start_date") String startDate, @Query(value="end_date") String endDate)
Copyright © 2023. All rights reserved.