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

Method get_api_url

crates/opencode-provider/src/gitlab.rs:78–84  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

76 }
77
78 fn get_api_url(&self) -> String {
79 self.config
80 .instance_url
81 .as_deref()
82 .map(|base| format!("{}/api/v4/ai/chat/completions", base.trim_end_matches('/')))
83 .unwrap_or_else(|| GITLAB_API_URL.to_string())
84 }
85
86 fn convert_request(&self, request: ChatRequest) -> GitLabRequest {
87 let messages: Vec<GitLabMessage> = request

Callers 2

chatMethod · 0.80
chat_streamMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected