Skip to content

Commit b8a012c

Browse files
authored
Merge pull request #652 from yrk111222/main
Modify the parameters of modelscope
2 parents 4526d64 + 332e574 commit b8a012c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ OLLAMA_ENDPOINT=http://localhost:11434
2121
ALIBABA_ENDPOINT=https://dashscope.aliyuncs.com/compatible-mode/v1
2222
ALIBABA_API_KEY=
2323

24+
MODELSCOPE_ENDPOINT=https://api-inference.modelscope.cn/v1
25+
MODELSCOPE_API_KEY=
26+
2427
MOONSHOT_ENDPOINT=https://api.moonshot.cn/v1
2528
MOONSHOT_API_KEY=
2629

src/utils/llm_provider.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ def get_llm_model(provider: str, **kwargs):
349349
base_url=base_url,
350350
model_name=kwargs.get("model_name", "Qwen/QwQ-32B"),
351351
temperature=kwargs.get("temperature", 0.0),
352+
extra_body = {"enable_thinking": False}
352353
)
353354
else:
354355
raise ValueError(f"Unsupported provider: {provider}")

0 commit comments

Comments
 (0)