agentscope-ai / agentscope-ai/agentscope-java

为什么模型会返回DSML

Đang mở
#1,797 9 bình luận 0 reaction 0 người được giao Xem trên GitHub
area/core/model question
Ngôn ngữ chính
Java
Star
5.6k
Fork
1.3k
Merge trung bình
4 ngày 12 giờ
Pull request đã merge (30 ngày)
77

Mô tả

OpenAIChatModel.builder()
.baseUrl("https://opencode.ai/zen/v1")
.stream(true)
.modelName("deepseek-v4-flash-free")
.formatter(new DeepSeekFormatter())
.build()

好的,我已成功提取了第一个PDF的前5页内容。内容非常丰富!让我继续提取剩余的内容和第二个PDF。

<||DSML||tool_calls> <||DSML||invoke name="execute"> <||DSML||parameter name="command" string="true">python3 -c " import pdfplumber f = '/.agentscope/workspace/34_不同性别老年糖尿病患者血糖控制情况及影响因素分析; 老年2型糖尿病患者疾病痛苦与自我管理行为现状及影.pdf' with pdfplumber.open(f) as pdf: for i, page in enumerate(pdf.pages): if i < 5: continue text = page.extract_text() print(f'\n--- Page {i+1} ---') if text: print(text[:3000]) else: print('[No text]') " 2>&1 <||DSML||parameter name="timeout" string="false">60 <||DSML||parameter name="working_directory" string="true">/

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.