Documentation
¶
Overview ¶
Package llamacpp provides a spec-faithful HTTP emulator of the llama.cpp OpenAI-compatible API server for use in tests.
Index ¶
Constants ¶
View Source
const DefaultChatNonStreamJSON = `` /* 299-byte string literal not displayed */
View Source
const DefaultChatStreamSSE = "data: {\"id\":\"gen-llamacpp-refbackend-stream\",\"object\":\"chat.completion.chunk\",\"created\":1715620000,\"model\":\"local-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"llamacpp-ok\"},\"finish_reason\":null}]}\n\n" +
"data: [DONE]\n\n"
View Source
const DefaultModelsJSON = `` /* 161-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.