You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DeepseekR1 is open-source and available from many manufacturers, but the price of the tokens varies. I found a cheaper option, but there were problems with the integration.
The provider‘s web here 百度云文档
here's the python code
library(ellmer)
chat<- chat_openai(
system_prompt=NULL,
turns=NULL,
base_url="https://qianfan.baidubce.com/v2/chat/completions",
api_key="bce-v3/ALTAK-KZke********/f1d6ee*************",
model="deepseek-r1",
seed=NULL,
api_args=list(),
echo= c("none", "text", "all")
)
chat$chat(" What is the difference between a tibble and a data frame? Answer with a bulleted list")
chat$chat("Tell me three funny jokes about statistcians")
however it returns
Error in `httr2::req_perform_connection()`:
! HTTP 404 Not Found.
Run `rlang::last_trace()` to see where the error occurred.
I want to know if it's my code that's wrong or if Ellmer doesn't support it temporarily? I think I used the correct API key.
The text was updated successfully, but these errors were encountered:
DeepseekR1 is open-source and available from many manufacturers, but the price of the tokens varies. I found a cheaper option, but there were problems with the integration.
The provider‘s web here
百度云文档
here's the python code
I've tried ellmer, maybe it should be like
however it returns
I want to know if it's my code that's wrong or if Ellmer doesn't support it temporarily? I think I used the correct API key.
The text was updated successfully, but these errors were encountered: