++
This commit is contained in:
@@ -49,7 +49,7 @@ def process_text(text):
|
||||
if should_include:
|
||||
results.append(tl.lower())
|
||||
|
||||
results = [item for item in results if item != '"']
|
||||
results = [item for item in results if item != '"' and len(item) > 2]
|
||||
|
||||
if results:
|
||||
return list(set(results))
|
||||
@@ -254,8 +254,8 @@ def prepare_prompt(data_sets):
|
||||
|
||||
# 读取操作符
|
||||
prompt += "\n\n以下是我的账号有权限使用的操作符, 请严格按照操作符, 进行生成,组合因子\n\n"
|
||||
prompt += "========================= 操作符开始 ======================================="
|
||||
prompt += "注意: Operator: 后面的是操作符,\nDescription: 此字段后面的是操作符对应的描述或使用说明, Description字段后面的内容是使用说明, 不是操作符\n"
|
||||
prompt += "========================= 操作符开始 =======================================\n"
|
||||
prompt += "注意: Operator: 后面的是操作符(是可以使用的),\nDescription: 此字段后面的是操作符对应的描述或使用说明(禁止使用, 仅供参考), Description字段后面的内容是使用说明, 不是操作符\n"
|
||||
prompt += "特别注意!!!! 必须按照操作符字段Operator的使用说明生成 alpha"
|
||||
operator_prompt_path = os.path.join(PREPARE_PROMPT, "operator.txt")
|
||||
operator = read_operator(operator_prompt_path)
|
||||
@@ -299,9 +299,9 @@ def main():
|
||||
# # 如果需要手动在页面段模型, 使用提示词, 打开这个, 将生成的提示词存到本地
|
||||
manual_prompt(prompt)
|
||||
|
||||
for model in MODELS:
|
||||
# 如果需要使用模型, 打开这个
|
||||
call_ai(prompt, model)
|
||||
# for model in MODELS:
|
||||
# # 如果需要使用模型, 打开这个
|
||||
# call_ai(prompt, model)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user