(input: Config)
| 18 | } |
| 19 | |
| 20 | const configuredRoute = (input: Config) => { |
| 21 | const { apiKey: _, auth: _auth, baseURL, ...rest } = input |
| 22 | return Gemini.route.with({ ...rest, endpoint: { baseURL }, auth: auth(input) }) |
| 23 | } |
| 24 | |
| 25 | export const configure = (input: Config = {}) => { |
| 26 | const route = configuredRoute(input) |