MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / build_url

Method build_url

crates/opencode-provider/src/vertex.rs:108–114  ·  view source on GitHub ↗
(&self, model: &str, method: &str)

Source from the content-addressed store, hash-verified

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();

Callers 2

chatMethod · 0.45
chat_streamMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected