Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
P4rfa1t authored Dec 26, 2024
1 parent 2194ec4 commit 89a0f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coreApi/AiServiceClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def generate_article(
headers = {
"Authorization": f"Bearer {config.get_value('config.ai.apikey')}",
}
api_url = config.get_value("config.ai.apiUrl")
api_url = config.get_value("config.ai.apiUrl").rstrip("/") + "/v1/chat/completions"

# 动态生成系统提示词,支持更灵活的扩展
system_prompt = (
Expand Down

0 comments on commit 89a0f19

Please sign in to comment.