Documentation
¶
Overview ¶
Package llamacpp provides the local llama.cpp llama-server OpenAI-compatible API.
The canonical model identity is llm.ProviderLlamaCPP ("llama.cpp"), matching OpenCode's documented custom local provider. The constructor still accepts the former llm.ProviderLlama identity for callers that explicitly selected this package before the hosted Meta Llama provider was added.
Index ¶
Constants ¶
View Source
const DefaultBaseURL = "http://127.0.0.1:8080/v1"
Variables ¶
This section is empty.
Functions ¶
func NewCounter ¶
func NewCounter(_ auth.APIKey) (contextcount.ContextCounter, error)
Types ¶
type CounterSupportError ¶
type CounterSupportError = llm.CounterSupportError
Click to show internal directories.
Click to hide internal directories.