Documentation ¶
Index ¶
- func CreateChatConversations(newStringUuid, sessionKey string) (model.ChatConversationResponse, error)
- func DeleteChatConversations(newStringUuid, sessionKey string) error
- func GetOrganizations(sessionKey string) (string, error)
- func HandleErrorResponse(c *gin.Context, err string)
- func NewChatCompletion(fullResponseText string) model.ChatCompletionResponse
- func OpenaiToClaudeParams(chatCompletionRequest model.ChatCompletionRequest) *model.ChatMessageRequest
- func RequestClaudeToResponse(c *gin.Context, params *model.ChatMessageRequest, stream bool)
- func SetHeaders(r *http2.Request, sessionKey string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateChatConversations ¶
func CreateChatConversations(newStringUuid, sessionKey string) (model.ChatConversationResponse, error)
func DeleteChatConversations ¶
func GetOrganizations ¶
func HandleErrorResponse ¶
func NewChatCompletion ¶
func NewChatCompletion(fullResponseText string) model.ChatCompletionResponse
func OpenaiToClaudeParams ¶
func OpenaiToClaudeParams(chatCompletionRequest model.ChatCompletionRequest) *model.ChatMessageRequest
OpenaiToClaudeParams 转换成claude的参数
func RequestClaudeToResponse ¶
func RequestClaudeToResponse(c *gin.Context, params *model.ChatMessageRequest, stream bool)
func SetHeaders ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.