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

Method getUri

app/src/main/java/eu/faircode/email/OpenAI.java:167–173  ·  view source on GitHub ↗
(Context context)

Source from the content-addressed store, hash-verified

165 }
166
167 private static String getUri(Context context) {
168 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
169 String endpoint = prefs.getString("openai_uri", BuildConfig.OPENAI_ENDPOINT);
170 if (!endpoint.endsWith("/"))
171 endpoint += "/";
172 return endpoint;
173 }
174
175 private static JSONObject call(Context context, String method, String path, JSONObject args) throws JSONException, IOException {
176 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);

Callers 2

isAvailableMethod · 0.95
callMethod · 0.95

Calls 1

getStringMethod · 0.45

Tested by

no test coverage detected