Versions in this module Expand all Collapse all v0 v0.1.7 Jan 6, 2025 Changes in this version + func NewApilTest(maxConcurrency int) interfaces.ApiTest + type ChannelTest struct + func (ct *ChannelTest) PrintResults(results []models.TestResult) error + func (ct *ChannelTest) TestAllApis(channels []*models.Channel) []models.TestResult + func (ct *ChannelTest) TestSingleChannel(channelType models.ChannelType, url, model, key string) error + type GeminiContent struct + Parts []GeminiPart + type GeminiError struct + Error struct{ ... } + type GeminiGenerationConfig struct + CandidateCount int + MaxOutputTokens int + StopSequences []string + Temperature float64 + TopK int + TopP float64 + type GeminiPart struct + Text string + type GeminiRequest struct + Contents []GeminiContent + GenerationConfig *GeminiGenerationConfig + type GeneralOpenAIRequest struct + MaxCompletionTokens int + MaxTokens int + Messages []Message + Model string + Stream bool + StreamOptions *StreamOptions + type Message struct + Content string + Role string + type OpenAIError struct + Error struct{ ... } + type StreamOptions struct + MaxTokens int + type Usage struct + CompletionTokens int + PromptTokens int + TotalTokens int