Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions LLM_API.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@
base_url="http://35.164.11.19:3887/v1"
)

# LLM 调用超时(秒),避免 API 挂死时程序一直等待
LLM_TIMEOUT = 600 # 10 分钟

def callOpenAI(prompt: str) -> str:
completion = client.chat.completions.create(
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": prompt}
],
model="gpt-5.1",
#model= "gpt-4o-2024-08-06",
#model="gpt-4-1106-preview",
#model="gpt-4-0314",
timeout=LLM_TIMEOUT,
)

message = completion.choices[0].message
Expand Down
8 changes: 4 additions & 4 deletions LLM_API_KJY.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
base_url="https://uni-api.cstcloud.cn/v1"
)

# LLM 调用超时(秒),避免 API 挂死时程序一直等待;大模型如 qwen3:235b 可能需数分钟
LLM_TIMEOUT = 600 # 10 分钟

def callOpenAI_KJY(prompt: str, modelname) -> str:
completion = client.chat.completions.create(
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": prompt}
],
#model="deepseek-r1:671b",
model=modelname,
#model= "gpt-4o-2024-08-06",
#model="gpt-4-1106-preview",
#model="gpt-4-0314",
timeout=LLM_TIMEOUT,
)

message = completion.choices[0].message
Expand Down
Binary file added chipfuzz/assets/cover-flowchart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading