mirror of
				https://github.com/yangjian102621/geekai.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	feat: update menu icons, add version in site titles
This commit is contained in:
		@@ -478,7 +478,7 @@ func (h *ChatHandler) doRequest(ctx context.Context, req types.ApiRequest, platf
 | 
			
		||||
	request = request.WithContext(ctx)
 | 
			
		||||
	request.Header.Set("Content-Type", "application/json")
 | 
			
		||||
	var proxyURL string
 | 
			
		||||
	if apiKey.ProxyURL != "" { // 使用代理
 | 
			
		||||
	if len(apiKey.ProxyURL) > 5 { // 使用代理
 | 
			
		||||
		proxy, _ := url.Parse(apiKey.ProxyURL)
 | 
			
		||||
		client = &http.Client{
 | 
			
		||||
			Transport: &http.Transport{
 | 
			
		||||
 
 | 
			
		||||
@@ -220,7 +220,7 @@ func (h *FunctionHandler) Dall3(c *gin.Context) {
 | 
			
		||||
	var res imgRes
 | 
			
		||||
	var errRes ErrRes
 | 
			
		||||
	var request *req.Request
 | 
			
		||||
	if apiKey.ProxyURL != "" {
 | 
			
		||||
	if len(apiKey.ProxyURL) > 5 {
 | 
			
		||||
		request = req.C().SetProxyURL(apiKey.ProxyURL).R()
 | 
			
		||||
	} else {
 | 
			
		||||
		request = req.C().R()
 | 
			
		||||
 
 | 
			
		||||
@@ -61,7 +61,7 @@ func OpenAIRequest(db *gorm.DB, prompt string) (string, error) {
 | 
			
		||||
	var response apiRes
 | 
			
		||||
	var errRes apiErrRes
 | 
			
		||||
	client := req.C()
 | 
			
		||||
	if apiKey.ProxyURL != "" {
 | 
			
		||||
	if len(apiKey.ProxyURL) > 5 {
 | 
			
		||||
		client.SetProxyURL(apiKey.ApiURL)
 | 
			
		||||
	}
 | 
			
		||||
	r, err := client.R().SetHeader("Content-Type", "application/json").
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user