(&self, model: &str, method: &str)
| 106 | } |
| 107 | |
| 108 | fn build_url(&self, model: &str, method: &str) -> String { |
| 109 | let base = self.config.base_url.as_deref().unwrap_or(VERTEX_API_BASE); |
| 110 | format!( |
| 111 | "{}/projects/{}/locations/{}/publishers/google/models/{}:{}", |
| 112 | base, self.config.project_id, self.config.location, model, method |
| 113 | ) |
| 114 | } |
| 115 | |
| 116 | fn convert_request(&self, request: ChatRequest) -> VertexRequest { |
| 117 | let mut contents = Vec::new(); |
no outgoing calls
no test coverage detected