mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-19 22:21:04 +08:00
Implement OpenAI chat completions in GO (#16177)
### What problem does this PR solve? Implement OpenAI chat completions in GO POST /api/v1/openai/<chat_id>/chat/completions OpenAI chat cli: internal/development.md ### Type of change - [x] Refactoring
This commit is contained in:
@@ -282,6 +282,11 @@ func (c *CLI) ExecuteUserCommand(cmd *Command) (ResponseIf, error) {
|
||||
return c.ChatToModel(cmd)
|
||||
case "think_chat_to_model":
|
||||
return c.ChatToModel(cmd)
|
||||
case "openai_chat":
|
||||
return c.OpenaiChat(cmd)
|
||||
case "openai_chat_help":
|
||||
printOpenaiChatHelp()
|
||||
return nil, nil
|
||||
case "embed_user_text":
|
||||
return c.EmbedUserText(cmd)
|
||||
case "rarank_user_document":
|
||||
|
||||
Reference in New Issue
Block a user