Documentation
¶
Overview ¶
Package llm 은 모델 API 클라이언트다 — OpenAI 호환 Chat Completions(Upstage · OpenAI · Gemini · 사내 vLLM 등)와 Anthropic Messages. 어느 것을 쓸지는 Factory 가 설정의 공급자로 고른다.
Index ¶
Constants ¶
View Source
const ( DefaultBaseURL = "https://api.upstage.ai/v1" DefaultModel = "solar-pro4" )
DefaultBaseURL · DefaultModel 은 Upstage 의 Chat Completions 와 기본 모델이다.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnthropicClient ¶
type AnthropicClient struct {
// contains filtered or unexported fields
}
AnthropicClient 는 Anthropic Messages API 클라이언트다. 시스템 프롬프트는 별도 필드, 도구 호출은 tool_use 블록, 도구 결과는 user 메시지의 tool_result 블록이다.
func NewAnthropic ¶
func NewAnthropic(cfg Config) *AnthropicClient
func (*AnthropicClient) Complete ¶
func (c *AnthropicClient) Complete(ctx context.Context, req port.CompletionRequest) (domain.Message, error)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.