Add support for configuring the Gemini API version via the apiVersion field in configuration options, similar to the interface used in the genai library.
Developers should be able to specify a custom API version for the Gemini service when initializing the client. If not set, the default API version should be left blank and use the SDK default.
Reference: chatgpt-plugin#822
Example reference from genai:
export interface GoogleGenAIOptions {
...
/** Optional. The API version to use.
* If unset, the default API version will be used.
*/
apiVersion?: string;
...
}
Acceptance Criteria:
See also chatgpt-plugin issue 822 for the motivating scenario.
Add support for configuring the Gemini API version via the
apiVersionfield in configuration options, similar to the interface used in the genai library.Developers should be able to specify a custom API version for the Gemini service when initializing the client. If not set, the default API version should be left blank and use the SDK default.
Reference: chatgpt-plugin#822
Example reference from genai:
Acceptance Criteria:
apiVersionfield is supported in the config for Gemini API.apiVersionis unset or blank, the default SDK behavior is to be used.apiVersionfor Gemini API.See also chatgpt-plugin issue 822 for the motivating scenario.