|
@@ -37,7 +37,7 @@ async def file_summary(content):
|
|
response = Application.call(
|
|
response = Application.call(
|
|
# 若没有配置环境变量,可用百炼API Key将下行替换为:api_key="sk-xxx"。但不建议在生产环境中直接将API Key硬编码到代码中,以减少API Key泄露风险。
|
|
# 若没有配置环境变量,可用百炼API Key将下行替换为:api_key="sk-xxx"。但不建议在生产环境中直接将API Key硬编码到代码中,以减少API Key泄露风险。
|
|
api_key=ai_key,
|
|
api_key=ai_key,
|
|
- app_id='5e3df30ad8bf44b68209e1ef089ff15c',
|
|
|
|
|
|
+ app_id='ef50d70cd4074a899a09875e6a6e36ea',
|
|
prompt=content)
|
|
prompt=content)
|
|
if response.status_code == HTTPStatus.OK:
|
|
if response.status_code == HTTPStatus.OK:
|
|
try:
|
|
try:
|
|
@@ -55,7 +55,7 @@ async def commit_summary(content):
|
|
response = Application.call(
|
|
response = Application.call(
|
|
# 若没有配置环境变量,可用百炼API Key将下行替换为:api_key="sk-xxx"。但不建议在生产环境中直接将API Key硬编码到代码中,以减少API Key泄露风险。
|
|
# 若没有配置环境变量,可用百炼API Key将下行替换为:api_key="sk-xxx"。但不建议在生产环境中直接将API Key硬编码到代码中,以减少API Key泄露风险。
|
|
api_key=ai_key,
|
|
api_key=ai_key,
|
|
- app_id='31a822df773248b19c3c9779f41a5507',
|
|
|
|
|
|
+ app_id='88426cc2301b44bea5d28d41d187ebf2',
|
|
prompt=content)
|
|
prompt=content)
|
|
if response.status_code == HTTPStatus.OK:
|
|
if response.status_code == HTTPStatus.OK:
|
|
try:
|
|
try:
|
|
@@ -73,7 +73,7 @@ def filter_code_files(prompt):
|
|
response = Application.call(
|
|
response = Application.call(
|
|
# 若没有配置环境变量,可用百炼API Key将下行替换为:api_key="sk-xxx"。但不建议在生产环境中直接将API Key硬编码到代码中,以减少API Key泄露风险。
|
|
# 若没有配置环境变量,可用百炼API Key将下行替换为:api_key="sk-xxx"。但不建议在生产环境中直接将API Key硬编码到代码中,以减少API Key泄露风险。
|
|
api_key=ai_key,
|
|
api_key=ai_key,
|
|
- app_id='c1a6dbb6d2314e469bfcbe44c2fe0a5f',
|
|
|
|
|
|
+ app_id='b0725a23eafd4422bfa7d5eff278af7c',
|
|
prompt=prompt)
|
|
prompt=prompt)
|
|
if response.status_code == HTTPStatus.OK:
|
|
if response.status_code == HTTPStatus.OK:
|
|
try:
|
|
try:
|
|
@@ -96,7 +96,7 @@ def analysis_results(local_path,path):
|
|
response = Application.call(
|
|
response = Application.call(
|
|
# 若没有配置环境变量,可用百炼API Key将下行替换为:api_key="sk-xxx"。但不建议在生产环境中直接将API Key硬编码到代码中,以减少API Key泄露风险。
|
|
# 若没有配置环境变量,可用百炼API Key将下行替换为:api_key="sk-xxx"。但不建议在生产环境中直接将API Key硬编码到代码中,以减少API Key泄露风险。
|
|
api_key=ai_key,
|
|
api_key=ai_key,
|
|
- app_id='2f288f146e2d492abb3fe22695e70635', # 替换为实际的应用 ID
|
|
|
|
|
|
+ app_id='b6edb4f5ff1c49f9855af27b14a0e8b4', # 替换为实际的应用 ID
|
|
prompt=prompt)
|
|
prompt=prompt)
|
|
|
|
|
|
if response.status_code == HTTPStatus.OK:
|
|
if response.status_code == HTTPStatus.OK:
|