| 50 | } |
| 51 | |
| 52 | type Adapter struct { |
| 53 | cfg config.BackendConfig |
| 54 | baseURL string |
| 55 | httpClient *http.Client |
| 56 | vertex bool // Vertex AI Gemini (Bearer token + regional aiplatform host) |
| 57 | } |
| 58 | |
| 59 | func New(cfg config.BackendConfig) *Adapter { |
| 60 | timeout := time.Duration(cfg.TimeoutMS) * time.Millisecond |
nothing calls this directly
no outgoing calls
no test coverage detected