Explorar el Código

临时master添加

liwei hace 3 semanas
padre
commit
3f5b28646c
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      internal/logic/chat/chat_completions_logic.go

+ 5 - 0
internal/logic/chat/chat_completions_logic.go

@@ -49,6 +49,11 @@ func (l *ChatCompletionsLogic) ChatCompletions(req *types.CompApiReq) (resp *typ
 	if !ok {
 		return nil, errors.New("content get token err")
 	}
+	if req.WorkId == "TEST_DOUYIN" || req.WorkId == "travel" { //临时加
+		apiKeyObj.OpenaiBase = "http://cn-agent.gkscrm.com/api/v1/"
+		workToken = "fastgpt-jsMmQKEM5uX7tDimT1zHlZHkBhMHRT2k61YaxyDJRZTUHehID7sG8BKXADNIU"
+	}
+
 	/*
 		fmt.Println("=========================================")
 		fmt.Printf("In ChatCompletion Get Token Info:\nKey:'%s'\n", apiKeyObj.Key)