ITADN

curl dependency fail

#961Closeddiegomsg 创建于 2026-04-10
D
diegomsgcommented
Using `{ellmer}` with an in-house private API: `chat_openai_compatible()` fails when used with litellm_api, an OpenAI‑compatible wrapper for multiple private models. ``` r library(ellmer) chat <- ellmer::chat_openai_compatible( name = "#private_api#", model = "#private_model", base_url = "#private_url" ) chat$chat("Hello! How can you help me with R?") #> Error: 'curl_modify_url' is not an exported object from 'namespace:curl' ``` <sup>Created on 2026-04-10 with [reprex v2.1.1](https://reprex.tidyverse.org)</sup> <details style="margin-bottom:10px;"> <summary> Session info </summary> ``` r sessioninfo::session_info() #> ─ Session info ─────────────────────────────────────────────────────────────── #> setting value #> version R version 4.3.3 (2024-02-29 ucrt) #> os Windows 11 x64 (build 22631) #> system x86_64, mingw32 #> ui RTerm #> language (EN) #> collate Portuguese_Brazil.utf8 #> ctype Portuguese_Brazil.utf8 #> tz America/Fortaleza #> date 2026-04-10 #> pandoc 3.6.3 @ C:/Users/f153699/AppData/Local/Pandoc/ (via rmarkdown) #> #> ─ Packages ─────────────────────────────────────────────────────────────────── #> package * version date (UTC) lib source #> cli 3.6.5 2025-04-23 [1] CRAN (R 4.3.3) #> coro 1.1.0 2024-11-05 [1] CRAN (R 4.3.3) #> curl 6.2.2 2025-03-24 [1] CRAN (R 4.3.3) #> digest 0.6.37 2024-08-19 [1] CRAN (R 4.3.3) #> ellmer * 0.4.0 2025-11-15 [1] CRAN (R 4.3.3) #> evaluate 1.0.3 2025-01-10 [1] CRAN (R 4.3.3) #> fastmap 1.2.0 2024-05-15 [1] CRAN (R 4.3.3) #> fs 1.6.6 2025-04-12 [1] CRAN (R 4.3.3) #> glue 1.8.0 2024-09-30 [1] CRAN (R 4.3.2) #> htmltools 0.5.9 2025-12-04 [1] CRAN (R 4.3.3) #> httr2 1.2.2 2025-12-08 [1] CRAN (R 4.3.3) #> knitr 1.50 2025-03-16 [1] CRAN (R 4.3.3) #> lifecycle 1.0.4 2023-11-07 [1] CRAN (R 4.3.3) #> magrittr 2.0.3 2022-03-30 [1] CRAN (R 4.3.3) #> otel 0.2.0 2025-08-29 [1] CRAN (R 4.3.3) #> R6 2.6.1 2025-02-15 [1] CRAN (R 4.3.3) #> rappdirs 0.3.3 2021-01-31 [1] CRAN (R 4.3.3) #> reprex 2.1.1 2024-07-06 [1] CRAN (R 4.3.3) #> rlang 1.1.6 2025-04-11 [1] CRAN (R 4.3.3) #> rmarkdown 2.29 2024-11-04 [1] CRAN (R 4.3.3) #> rstudioapi 0.17.1 2024-10-22 [1] CRAN (R 4.3.3) #> S7 0.2.0 2024-11-07 [1] CRAN (R 4.3.3) #> sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.3.3) #> withr 3.0.2 2024-10-28 [1] CRAN (R 4.3.3) #> xfun 0.52 2025-04-02 [1] CRAN (R 4.3.3) #> yaml 2.3.10 2024-07-26 [1] CRAN (R 4.3.3) #> #> [1] C:/Users/f153699/AppData/Local/R/library/4.3 #> [2] C:/Program Files/R/R-4.3.3/library #> #> ────────────────────────────────────────────────────────────────────────────── ``` </details> It seems a matter of curl version, imposed in windows binary as `6.2.2`, because `7.0.0` cannot be installed from source due to organizational limitations. Is there another way to solve it until binary for newer curl version is available?
关闭于 2026-05-04 3 条评论