Skip to content

Commit 51b7936

Browse files
author
scrapebadger-bot
committed
chore: regenerate SDK from OpenAPI spec
1 parent a8a10b4 commit 51b7936

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

api/openapi.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6173,9 +6173,10 @@ paths:
61736173
title: Web Search
61746174
type: string
61756175
style: form
6176-
- description: Public http(s) URL of an image to attach to the prompt. Gemini
6177-
reads it and answers about it. POST also accepts `image_base64`. Exactly
6178-
one of the two.
6176+
- description: "UNAVAILABLE. Signed-out Gemini refuses image questions — it\
6177+
\ accepts the upload and then answers PERMISSION_DENIED to its own generate\
6178+
\ RPC, so this returns 422 immediately rather than charging for a render\
6179+
\ that cannot succeed. Use /v1/chatgpt/ask for image input."
61796180
explode: true
61806181
in: query
61816182
name: image_url

docs/GeminiApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class Example {
4545
String prompt = "prompt_example"; // String | The prompt to send to Gemini (max 4096 characters).
4646
String country = "country_example"; // String | ISO-3166 alpha-2 egress country, e.g. 'US', 'GB', 'DE'.
4747
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.
4949
try {
5050
Object result = apiInstance.geminiAskGeminiAQuestion(prompt, country, webSearch, imageUrl);
5151
System.out.println(result);
@@ -67,7 +67,7 @@ public class Example {
6767
| **prompt** | **String**| The prompt to send to Gemini (max 4096 characters). | |
6868
| **country** | **String**| ISO-3166 alpha-2 egress country, e.g. 'US', 'GB', 'DE'. | [optional] |
6969
| **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] |
7171

7272
### Return type
7373

src/main/java/com/scrapebadger/client/api/GeminiApi.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
7777
* @param prompt The prompt to send to Gemini (max 4096 characters). (required)
7878
* @param country ISO-3166 alpha-2 egress country, e.g. 'US', 'GB', 'DE'. (optional)
7979
* @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)
8181
* @param _callback Callback for upload/download progress
8282
* @return Call to execute
8383
* @throws ApiException If fail to serialize the request body object
@@ -166,7 +166,7 @@ private okhttp3.Call geminiAskGeminiAQuestionValidateBeforeCall(String prompt, S
166166
* @param prompt The prompt to send to Gemini (max 4096 characters). (required)
167167
* @param country ISO-3166 alpha-2 egress country, e.g. 'US', 'GB', 'DE'. (optional)
168168
* @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)
170170
* @return Object
171171
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
172172
* @http.response.details
@@ -188,7 +188,7 @@ public Object geminiAskGeminiAQuestion(String prompt, String country, String web
188188
* @param prompt The prompt to send to Gemini (max 4096 characters). (required)
189189
* @param country ISO-3166 alpha-2 egress country, e.g. 'US', 'GB', 'DE'. (optional)
190190
* @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)
192192
* @return ApiResponse<Object>
193193
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
194194
* @http.response.details
@@ -211,7 +211,7 @@ public ApiResponse<Object> geminiAskGeminiAQuestionWithHttpInfo(String prompt, S
211211
* @param prompt The prompt to send to Gemini (max 4096 characters). (required)
212212
* @param country ISO-3166 alpha-2 egress country, e.g. &#39;US&#39;, &#39;GB&#39;, &#39;DE&#39;. (optional)
213213
* @param webSearch auto (let Gemini decide) | force (ask it to browse) | off (answer from memory). &#x60;web_search_triggered&#x60; 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 &#x60;image_base64&#x60;. 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)
215215
* @param _callback The callback to be executed when the API call finishes
216216
* @return The request call
217217
* @throws ApiException If fail to process the API call, e.g. serializing the request body object

0 commit comments

Comments
 (0)