generative-ai-swift
generative-ai-swift copied to clipboard
add `baseURL` for the proxy
Description of the change
Modified the url computed property within the GenerativeAIRequest extension to use the provided baseURL if available. If baseURL is nil, it defaults to GenerativeAISwift.baseURL.
Motivation
The primary motivation for this change is to enable routing of requests through a custom server proxy. By introducing an optional baseURL, the application gains the ability to direct API calls through an intermediary server.
Type of change
Feature request
Checklist
- [x] I have performed a self-review of my code.
- [x] I have added detailed comments to my code where applicable.
- [x] I have verified that my change does not break existing code.
- [x] My PR is based on the latest changes of the main branch (if unsure, please run
git pull --rebase upstream main). - [x] I am familiar with the Google Style Guide for the language I have coded in.
- [x] I have read through the Contributing Guide and signed the Contributor License Agreement.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.