MCPcopy Create free account
hub / github.com/AI45Lab/Code / get_base_url

Method get_base_url

core/src/config/provider.rs:169–171  ·  view source on GitHub ↗

Get the effective base URL for a model (model override or provider default)

(&'a self, model: &'a ModelConfig)

Source from the content-addressed store, hash-verified

167
168 /// Get the effective base URL for a model (model override or provider default)
169 pub fn get_base_url<'a>(&'a self, model: &'a ModelConfig) -> Option<&'a str> {
170 model.base_url.as_deref().or(self.base_url.as_deref())
171 }
172
173 /// Get the effective static headers for a model (provider defaults with model overrides)
174 pub fn get_headers(&self, model: &ModelConfig) -> HashMap<String, String> {

Callers 2

default_llm_configMethod · 0.80
llm_configMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected