openai_responses

package
v1.54.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

* ChatCLI - Command Line Interface for LLM interaction * Copyright (c) 2024 Edilson Freitas * License: MIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenAIResponsesClient

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

OpenAIResponsesClient implementa o cliente para a API /v1/responses

func NewOpenAIResponsesClient

func NewOpenAIResponsesClient(apiKey, model string, logger *zap.Logger, maxAttempts int, backoff time.Duration) *OpenAIResponsesClient

NewOpenAIResponsesClient cria uma nova instância de OpenAIResponsesClient. Agora sem fallback interno: usa apenas os params passados (vindos do manager/ENVs).

func (*OpenAIResponsesClient) GetModelName

func (c *OpenAIResponsesClient) GetModelName() string

func (*OpenAIResponsesClient) SendPrompt

func (c *OpenAIResponsesClient) SendPrompt(ctx context.Context, prompt string, history []models.Message, maxTokens int) (string, error)

Jump to

Keyboard shortcuts

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