Documentation
¶
Overview ¶
Package openai implements analyzer.LLMClient against the OpenAI chat completions API
Index ¶
Constants ¶
const (
// DefaultModel is used when config does not name one
DefaultModel = "gpt-4o-mini"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an analyzer.LLMClient backed by the OpenAI API
func (*Client) Capabilities ¶
func (c *Client) Capabilities() analyzer.ModelCapabilities
func (*Client) Complete ¶
func (c *Client) Complete(ctx context.Context, req analyzer.LLMRequest) (analyzer.LLMResponse, error)
Complete sends one chat completion request. It never places req.System or req.User content anywhere but the message body OpenAI defines for it - the scanned content passed in as req.User gets no function/tool definitions, so the model has nothing to invoke, only text to judge.