I can't get any btw functions to work with local models using chat_openai_compatible()
I tested the model below and it's fine as a basic interactive chat when used staright but the following produces no error or any response
chat <- btw_client(
client = chat_openai_compatible(
base_url = "http://localhost:1234/v1",
name = "OpenAI-compatible",
system_prompt = "You are a helpful assistant.",
api_key = NULL,
credentials = NULL,
model = "olmo-3-7b-instruct-sft-bfloat16",
params = NULL,
api_args = list(),
api_headers = character(),
echo = c("none", "output", "all")
)
)
chat$chat(
"How can I replace `stop()` calls with functions from the cli package?"
)
Am I misunderstanding something? What is missing?
I can't get any btw functions to work with local models using chat_openai_compatible()
I tested the model below and it's fine as a basic interactive chat when used staright but the following produces no error or any response
Am I misunderstanding something? What is missing?