Skip to content

Commit

Permalink
relative to full url for telemetry endpoints in case of self-hosting (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mitya52 authored Dec 14, 2023
1 parent 978c3f5 commit 24dd7c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/caps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ pub async fn load_caps(
_inherit_r1_from_r0(&mut r1, &r0);
r1.endpoint_template = relative_to_full_url(&caps_url, &r1.endpoint_template)?;
r1.endpoint_chat_passthrough = relative_to_full_url(&caps_url, &r1.endpoint_chat_passthrough)?;
if r1.cloud_name == "Refact Self-Hosted" {
r1.telemetry_basic_dest = relative_to_full_url(&caps_url, &r1.telemetry_basic_dest)?;
r1.telemetry_corrected_snippets_dest = relative_to_full_url(&caps_url, &r1.telemetry_corrected_snippets_dest)?;
}
info!("caps {} completion models", r1.code_completion_models.len());
info!("caps default completion model: \"{}\"", r1.code_completion_default_model);
info!("caps {} chat models", r1.code_chat_models.len());
Expand Down

0 comments on commit 24dd7c7

Please sign in to comment.