ai

package
v0.1.106 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package ai provides a shared Together.ai client for all Broly scanners.

Index

Constants

View Source
const DefaultModel = "Qwen/Qwen3-Coder-Next-FP8"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client wraps the Together.ai SDK for use by Broly scanners.

func New

func New(model string) (*Client, bool)

New returns a Client and true if TOGETHER_API_KEY is set, or nil and false otherwise.

func (*Client) Complete

func (c *Client) Complete(ctx context.Context, prompt string, maxTokens int) (string, error)

Complete sends a single-turn prompt and returns the response text. maxTokens controls the response length (0 = use default 2048).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL