public class BardUtils extends Object
| Constructor and Description |
|---|
BardUtils() |
| Modifier and Type | Method and Description |
|---|---|
static okhttp3.RequestBody |
buildRequestBodyForAsk(BardRequest bardRequest) |
static okhttp3.Request.Builder |
createBuilderWithBardHeader(String token) |
static okhttp3.HttpUrl.Builder |
createHttpBuilderForAsk() |
static okhttp3.Request |
createPostRequestForAsk(String token,
BardRequest bardRequest) |
static okhttp3.Request |
createRequestForSNlM0e(String token) |
static String |
fetchSNlM0eFromBody(String input) |
static Map<String,String> |
genQueryStringParamsForAsk() |
static boolean |
isEmpty(String str) |
static String |
removeBackslash(String answerStr)
remove backslash \ in answer string
|
static BardResponse |
renderBardResponseFromResponse(String content) |
public static okhttp3.Request.Builder createBuilderWithBardHeader(String token)
public static okhttp3.Request createRequestForSNlM0e(String token)
@NotNull public static okhttp3.HttpUrl.Builder createHttpBuilderForAsk()
public static String removeBackslash(String answerStr)
@NotNull public static okhttp3.Request createPostRequestForAsk(String token, BardRequest bardRequest)
@NotNull public static okhttp3.RequestBody buildRequestBodyForAsk(BardRequest bardRequest)
public static BardResponse renderBardResponseFromResponse(String content)
public static boolean isEmpty(String str)
Copyright © 2023. All rights reserved.