You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/GeminiApi.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ public class Example {
45
45
String prompt ="prompt_example"; // String | The prompt to send to Gemini (max 4096 characters).
46
46
String country ="country_example"; // String | ISO-3166 alpha-2 egress country, e.g. 'US', 'GB', 'DE'.
47
47
String webSearch ="auto"; // String | auto (let Gemini decide) | force (ask it to browse) | off (answer from memory). `web_search_triggered` in the response always reports what actually happened.
48
-
String imageUrl ="imageUrl_example"; // String | Public http(s) URL of an image to attach to the prompt. Gemini reads it and answers about it. POST also accepts `image_base64`. Exactly one of the two.
48
+
String imageUrl ="imageUrl_example"; // String | UNAVAILABLE. Signed-out Gemini refuses image questions — it accepts the upload and then answers PERMISSION_DENIED to its own generate RPC, so this returns 422 immediately rather than charging for a render that cannot succeed. Use /v1/chatgpt/ask for image input.
49
49
try {
50
50
Object result = apiInstance.geminiAskGeminiAQuestion(prompt, country, webSearch, imageUrl);
51
51
System.out.println(result);
@@ -67,7 +67,7 @@ public class Example {
67
67
|**prompt**|**String**| The prompt to send to Gemini (max 4096 characters). ||
68
68
|**country**|**String**| ISO-3166 alpha-2 egress country, e.g. 'US', 'GB', 'DE'. |[optional]|
69
69
|**webSearch**|**String**| auto (let Gemini decide) | force (ask it to browse) | off (answer from memory). `web_search_triggered` in the response always reports what actually happened. |[optional][default to auto]|
70
-
|**imageUrl**|**String**|Public http(s) URL of an image to attach to the prompt. Gemini reads it and answers about it. POST also accepts `image_base64`. Exactly one of the two. |[optional]|
70
+
|**imageUrl**|**String**|UNAVAILABLE. Signed-out Gemini refuses image questions — it accepts the upload and then answers PERMISSION_DENIED to its own generate RPC, so this returns 422 immediately rather than charging for a render that cannot succeed. Use /v1/chatgpt/ask for image input. |[optional]|
Copy file name to clipboardExpand all lines: src/main/java/com/scrapebadger/client/api/GeminiApi.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
77
77
* @param prompt The prompt to send to Gemini (max 4096 characters). (required)
78
78
* @param country ISO-3166 alpha-2 egress country, e.g. 'US', 'GB', 'DE'. (optional)
79
79
* @param webSearch auto (let Gemini decide) | force (ask it to browse) | off (answer from memory). `web_search_triggered` in the response always reports what actually happened. (optional, default to auto)
80
-
* @param imageUrl Public http(s) URL of an image to attach to the prompt. Gemini reads it and answers about it. POST also accepts `image_base64`. Exactly one of the two. (optional)
80
+
* @param imageUrl UNAVAILABLE. Signed-out Gemini refuses image questions — it accepts the upload and then answers PERMISSION_DENIED to its own generate RPC, so this returns 422 immediately rather than charging for a render that cannot succeed. Use /v1/chatgpt/ask for image input. (optional)
81
81
* @param _callback Callback for upload/download progress
82
82
* @return Call to execute
83
83
* @throws ApiException If fail to serialize the request body object
@@ -166,7 +166,7 @@ private okhttp3.Call geminiAskGeminiAQuestionValidateBeforeCall(String prompt, S
166
166
* @param prompt The prompt to send to Gemini (max 4096 characters). (required)
167
167
* @param country ISO-3166 alpha-2 egress country, e.g. 'US', 'GB', 'DE'. (optional)
168
168
* @param webSearch auto (let Gemini decide) | force (ask it to browse) | off (answer from memory). `web_search_triggered` in the response always reports what actually happened. (optional, default to auto)
169
-
* @param imageUrl Public http(s) URL of an image to attach to the prompt. Gemini reads it and answers about it. POST also accepts `image_base64`. Exactly one of the two. (optional)
169
+
* @param imageUrl UNAVAILABLE. Signed-out Gemini refuses image questions — it accepts the upload and then answers PERMISSION_DENIED to its own generate RPC, so this returns 422 immediately rather than charging for a render that cannot succeed. Use /v1/chatgpt/ask for image input. (optional)
170
170
* @return Object
171
171
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
172
172
* @http.response.details
@@ -188,7 +188,7 @@ public Object geminiAskGeminiAQuestion(String prompt, String country, String web
188
188
* @param prompt The prompt to send to Gemini (max 4096 characters). (required)
189
189
* @param country ISO-3166 alpha-2 egress country, e.g. 'US', 'GB', 'DE'. (optional)
190
190
* @param webSearch auto (let Gemini decide) | force (ask it to browse) | off (answer from memory). `web_search_triggered` in the response always reports what actually happened. (optional, default to auto)
191
-
* @param imageUrl Public http(s) URL of an image to attach to the prompt. Gemini reads it and answers about it. POST also accepts `image_base64`. Exactly one of the two. (optional)
191
+
* @param imageUrl UNAVAILABLE. Signed-out Gemini refuses image questions — it accepts the upload and then answers PERMISSION_DENIED to its own generate RPC, so this returns 422 immediately rather than charging for a render that cannot succeed. Use /v1/chatgpt/ask for image input. (optional)
192
192
* @return ApiResponse<Object>
193
193
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
194
194
* @http.response.details
@@ -211,7 +211,7 @@ public ApiResponse<Object> geminiAskGeminiAQuestionWithHttpInfo(String prompt, S
211
211
* @param prompt The prompt to send to Gemini (max 4096 characters). (required)
212
212
* @param country ISO-3166 alpha-2 egress country, e.g. 'US', 'GB', 'DE'. (optional)
213
213
* @param webSearch auto (let Gemini decide) | force (ask it to browse) | off (answer from memory). `web_search_triggered` in the response always reports what actually happened. (optional, default to auto)
214
-
* @param imageUrl Public http(s) URL of an image to attach to the prompt. Gemini reads it and answers about it. POST also accepts `image_base64`. Exactly one of the two. (optional)
214
+
* @param imageUrl UNAVAILABLE. Signed-out Gemini refuses image questions — it accepts the upload and then answers PERMISSION_DENIED to its own generate RPC, so this returns 422 immediately rather than charging for a render that cannot succeed. Use /v1/chatgpt/ask for image input. (optional)
215
215
* @param _callback The callback to be executed when the API call finishes
216
216
* @return The request call
217
217
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
0 commit comments