MCPcopy Create free account
hub / github.com/M66B/FairEmail / isAvailable

Method isAvailable

app/src/main/java/eu/faircode/email/AI.java:43–45  ·  view source on GitHub ↗
(Context context)

Source from the content-addressed store, hash-verified

41 static final int MAX_SUMMARIZE_TEXT_SIZE = 4 * 1024;
42
43 static boolean isAvailable(Context context) {
44 return (OpenAI.isAvailable(context) || Gemini.isAvailable(context));
45 }
46
47 @NonNull
48 static Spanned completeChat(Context context, long id, boolean system, CharSequence body, String reply, String prompt) throws JSONException, IOException {

Callers 12

getSwipeActionsMethod · 0.95
onExecutedMethod · 0.95
onCreateViewMethod · 0.95
onCreateDialogMethod · 0.95
onClickMethod · 0.95
onPrepareOptionsMenuMethod · 0.95
runMethod · 0.95
onSwipeSummarizeMethod · 0.95
onCreateDialogMethod · 0.95
onExecutedMethod · 0.95
onActionMoreMethod · 0.95
getFolderActionsMethod · 0.95

Calls 2

isAvailableMethod · 0.95
isAvailableMethod · 0.95

Tested by

no test coverage detected