package
0.2.1
Repository: https://github.com/go-coders/check-gpt.git
Documentation: pkg.go.dev

# Functions

DefaultConfig returns the default configuration.
NewApiTest creates a new API test instance with options.
NewChannelTest creates a new ChannelTest instance.
NewRequestBuilder creates a new DefaultRequestBuilder.
NewResultProcessor creates a new DefaultResultProcessor.
PrintModelMenu prints the model selection menu.
WithClient sets the HTTP client.
WithConfig sets the configuration.
WithPrinter sets the printer.
WithRequestBuilder sets the request builder.
WithResultProcessor sets the result processor.

# Constants

No description provided by the author
No description provided by the author

# Structs

Channel represents an API channel configuration.
ChannelTest represents a test for API channels.
No description provided by the author
DefaultRequestBuilder implements the RequestBuilder interface.
DefaultResultProcessor implements the ResultProcessor interface.
GeminiError represents the error structure returned by Gemini API.
Message represents a message in the OpenAI request.
OpenAIError represents the error structure returned by OpenAI API.
OpenAIRequest represents a request to the OpenAI API.
Parse OpenAI response.
RequestOptions holds options for API requests.
TestConfig holds configuration for a single test.
TestResult represents the result of an API test.
Usage represents the token usage information.

# Interfaces

APITester defines the main interface for API testing.
HTTPClient abstracts the HTTP client for better testing.
RequestBuilder builds HTTP requests for different API types.
ResultProcessor processes API responses.

# Type aliases

ChannelTestOption defines a function type for configuring ChannelTest.
ChannelType represents the type of API channel.