service

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateChatConversations

func CreateChatConversations(newStringUuid, sessionKey string) (model.ChatConversationResponse, error)

func DeleteChatConversations

func DeleteChatConversations(newStringUuid, sessionKey string) error

func GetOrganizations

func GetOrganizations(sessionKey string) (string, error)

func HandleErrorResponse

func HandleErrorResponse(c *gin.Context, err string)

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

func SetHeaders(r *http2.Request, sessionKey string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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