mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	【代码优化】AI:优化 xinghuo 的接入,复用 OpenAI,同时将 ws 替换成 htt 调用
This commit is contained in:
		@@ -162,11 +162,6 @@ spring:
 | 
			
		||||
      base-url: https://api.gptsapi.net
 | 
			
		||||
    stabilityai:
 | 
			
		||||
      api-key: sk-e53UqbboF8QJCscYvzJscJxJXoFcFg4iJjl1oqgE7baJETmx
 | 
			
		||||
    vertex:
 | 
			
		||||
      ai:
 | 
			
		||||
        gemini:
 | 
			
		||||
          project-id: 1 # TODO 芋艿:缺配置
 | 
			
		||||
          location: 2
 | 
			
		||||
    qianfan: # 文心一言
 | 
			
		||||
      api-key: x0cuLZ7XsaTCU08vuJWO87Lg
 | 
			
		||||
      secret-key: R9mYF9dl9KASgi5RUq0FQt3wRisSnOcK
 | 
			
		||||
@@ -176,37 +171,24 @@ spring:
 | 
			
		||||
        tongyi:
 | 
			
		||||
          api-key: sk-Zsd81gZYg7
 | 
			
		||||
 | 
			
		||||
yudao.ai:
 | 
			
		||||
  xinghuo:
 | 
			
		||||
    enable: true
 | 
			
		||||
    aiPlatform: XING_HUO # TODO @fan:建议每个都独立配置属性类
 | 
			
		||||
    max-tokens: 1500
 | 
			
		||||
    temperature: 0.85
 | 
			
		||||
    topP: 0.8
 | 
			
		||||
    topK: 0
 | 
			
		||||
    appId: 13c8cca6
 | 
			
		||||
    appKey: cb6415c19d6162cda07b47316fcb0416
 | 
			
		||||
    secretKey: Y2JiYTIxZjA3MDMxMjNjZjQzYzVmNzdh
 | 
			
		||||
    model: XING_HUO_3_5
 | 
			
		||||
  qianwen:
 | 
			
		||||
    enable: true
 | 
			
		||||
    aiPlatform: QIAN_WEN
 | 
			
		||||
    max-tokens: 1500
 | 
			
		||||
    temperature: 0.85
 | 
			
		||||
    topP: 0.8
 | 
			
		||||
    topK: 0
 | 
			
		||||
    api-key: sk-Zsd81gZYg7
 | 
			
		||||
    model: QWEN_TURBO
 | 
			
		||||
  midjourney:
 | 
			
		||||
    enable: true
 | 
			
		||||
#    base-url: https://api.holdai.top/mj-relax/mj
 | 
			
		||||
    base-url: https://api.holdai.top/mj
 | 
			
		||||
    api-key: sk-dZEPiVaNcT3FHhef51996bAa0bC74806BeAb620dA5Da10Bf
 | 
			
		||||
    notify-url: http://java.nat300.top/admin-api/ai/image/midjourney/notify
 | 
			
		||||
  suno:
 | 
			
		||||
    enable: true
 | 
			
		||||
#    base-url: https://suno-55ishh05u-status2xxs-projects.vercel.app
 | 
			
		||||
    base-url: http://127.0.0.1:3001
 | 
			
		||||
yudao:
 | 
			
		||||
  ai:
 | 
			
		||||
    xinghuo:
 | 
			
		||||
      enable: true
 | 
			
		||||
      appId: 13c8cca6
 | 
			
		||||
      appKey: cb6415c19d6162cda07b47316fcb0416
 | 
			
		||||
      secretKey: Y2JiYTIxZjA3MDMxMjNjZjQzYzVmNzdh
 | 
			
		||||
      model: generalv3.5
 | 
			
		||||
    midjourney:
 | 
			
		||||
      enable: true
 | 
			
		||||
  #    base-url: https://api.holdai.top/mj-relax/mj
 | 
			
		||||
      base-url: https://api.holdai.top/mj
 | 
			
		||||
      api-key: sk-dZEPiVaNcT3FHhef51996bAa0bC74806BeAb620dA5Da10Bf
 | 
			
		||||
      notify-url: http://java.nat300.top/admin-api/ai/image/midjourney/notify
 | 
			
		||||
    suno:
 | 
			
		||||
      enable: true
 | 
			
		||||
  #    base-url: https://suno-55ishh05u-status2xxs-projects.vercel.app
 | 
			
		||||
      base-url: http://127.0.0.1:3001
 | 
			
		||||
 | 
			
		||||
--- #################### 芋道相关配置 ####################
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user