package
0.0.0-20230318120623-68f2aaec4413
Repository: https://github.com/huweiatgithub/chatgpt-apiserver.git
Documentation: pkg.go.dev

# Functions

CompleteChat handles the chat completion endpoint.
NewControllersPoolRandom Creates a new ControllersPoolRandom.
NewControllersPoolSmoothWeightedRoundRobin Creates a new ControllersPoolSmoothWeightedRoundRobin.
NewOpenAIConfigFromEnv creates a new OpenAIConfig.
NewOpenAIConfigFromFile creates a new OpenAIConfig.
No description provided by the author
NewOpenAIController creates a new OpenAIController.

# Variables

No description provided by the author

# Structs

No description provided by the author
ControllersPoolRandom A simple implementation of ControllersPool.
No description provided by the author
OpenAIController The controller for OpenAI.
No description provided by the author

# Interfaces

ChatCompletionStream The interface for the stream.
Controller The interface for the controller.
ControllersPool The interface for the pool of controllers.

# Type aliases

ChatCompletionRequest The unified request.
ChatCompletionResponse The unified response.
ChatCompletionStreamResponse The unified stream response.
No description provided by the author