Skip to content

Is btw compatibile with chat_openai_compatible() ? #134

@Malarkey73

Description

@Malarkey73

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions