智谱 AI 这个错误也是代表我调用成功了?

测试用 pdf 文件中的内容:

尝试在P8中,加入ZhipuAI 作为翻译器的一个选择。

测试的PDF,在ORC后的英文内容是:

原文
AINJIANG

CHINA’S
MUSLIM
BORDERLAND

S. FREDERICK STARR, eoror

M.E.Sharpe
Armonk, New York
London, England

Copyright © 2004 by Central Asia-Caucasus Institute

All rights reserved. No part of this book may be reproduced in any form
without written permission from the publisher, M.E. Sharpe, Inc.,
80 Business Park Drive, Armonk, New York 10504.

Library of Congress Cataloging-in-Publication Data

Xinjiang : China’s Muslim borderland / edited by S. Frederick Starr.
p. cm.—(Studies of Central Asia and the Caucasus)

Includes bibliographical references and index.

ISBN 0-7656-1317-4 (alk. paper)

1. Xinjiang Uygur Zizhiqu (China) I. Starr, S. Frederick. II. Series.

DS793.562 X5632 2004
951" —dc21 2003011518
Printed in the United States of America
The paper used in this publication meets the minimum requirements of
American National Standard for Information Sciences

Permanence of Paper for Printed Library Materials,
ANSI Z 39.48-1984.

BM({c) 10 9 8 7 &€ 5 ¢ 3 2 1

1

Introduction
S. Frederick Starr

If Xinjiang’s only claim to fame were that it is China’s largest province and
a sixth of its land area, if it only had the highest per capita gross domestic
product (GDP) of any province outside the booming coast, or if it could
only boast of being home to China’s nuclear test facilities and of having the
country’s largest oil reserves, this book would never have been written.

But Xinjiang is also the one province of China with a substantial popu-
lation that is both Turkic and Muslim. In recent years, it has witnessed a
vigorous Muslim revival and has been the scene of a protracted struggle
for greater autonomy and even independence. Beijing officials and West-
ern observers concur that some of the province’s Turkic inhabitants have
mounted thousands of shows of resistance and committed a smaller but
still significant number of violent and even terrorist acts. They speak with
either pride or dismay of equally confrontational countermeasures by the
Chinese authorities. All this takes place in a territory that borders eight
other countries, three of them nuclear powers and five of them largely
Muslim. It is these aspects of Xinjiang today that evoke the world’s con-
cern and that gave rise to this book.

Xinjiang is remote from most major world centers. Its western and south-
ern borders are closer to Baghdad or New Delhi than to Beijing. Trains from
Xinjiang’s capital of Urumchi take several days to reach the capital of its
northern neighbor, Russia, while its southern neighbors, Afghanistan, Paki-
stan, and India, are as yet unreachable from Urumchi by direct rail. Its
remoteness has surrounded Xinjiang with an aura of exoticism. The nine-
teenth-century Russian explorer Nikolay Przhevalsky, the hero of Finnish
independence C. G. Mannerheim, and the great American newsman Harrison
Salisbury were but three out of scores of visitors from both the West and the
East who made their way there precisely because of its remoteness and dif-
ference from all their usual points of reference.’

More recently, Xinjiang has entered the consciousness of the West
because of the stunning Buddhist paintings that survive in cave sanctuar-

用google机器翻译后的内容:

没看出哪儿有禁忌词

新疆

中国穆斯林边境

S. FREDERICK STARR,编

M.E.Sharpe
纽约州阿蒙克
英国伦敦

版权所有 © 2004 中亚-高加索研究所

保留所有权利。未经出版商 M.E. Sharpe, Inc. 书面许可,不得以任何形式复制本书的任何部分,

80 Business Park Drive, Armonk, New York 10504。国会图书馆出版目录数据

新疆:中国穆斯林边境/S. Frederick Starr 编辑。p. cm.—(中亚和高加索研究)

包括参考书目和索引。 ISBN 0-7656-1317-4 (碱性纸)

1. 新疆维吾尔自治区 (中国) I. Starr, S. Frederick. II. 系列。 DS793.562 X5632 2004
951" —dc21 2003011518
美国印刷
本出版物中使用的纸张符合美国国家信息科学标准

印刷图书馆材料用纸的耐久性,
ANSI Z 39.48-1984 的最低要求。BM({c) 10 9 8 7 &€ 5 ¢ 3 2 1

1

简介
S. Frederick Starr

如果新疆唯一的名声是它是中国最大的省份,土地面积占中国土地面积的六分之一,如果它的人均国内生产总值 (GDP) 是除沿海地区以外的所有省份中最高的,或者如果它只能夸耀拥有中国核试验设施和拥有该国最大的石油储备,那么这本书就永远不会被写出来。但新疆也是中国唯一一个拥有大量石油的省份新疆是一个突厥和穆斯林聚居区。近年来,新疆穆斯林复兴势头强劲,为争取更大自治权甚至独立而展开了长期斗争。北京官员和西方观察家一致认为,该省的一些突厥居民发起了数千次反抗,并犯下了数量较少但仍然相当可观的暴力甚至恐怖行为。他们对中国当局同样对抗性的反制措施既感到自豪又感到沮丧。所有这一切都发生在与其他八个国家接壤的领土上,其中三个是核大国,五个主要是穆斯林国家。正是新疆今天的这些方面引起了世界的关注,并促成了这本书的诞生。新疆远离大多数世界主要中心。它的西部和南部边界距离巴格达或新德里比距离北京更近。从新疆首府乌鲁木齐出发的火车需要几天才能到达其北方邻国俄罗斯的首都,而其南方邻国阿富汗、巴基斯坦和印度目前还没有从乌鲁木齐直达的铁路。偏远的地理位置给新疆笼罩上了一层异国情调。十九世纪的俄罗斯探险家尼古拉·普热瓦尔斯基、芬兰独立英雄 C. G. 曼纳海姆和伟大的美国新闻人哈里森·索尔兹伯里只是来自西方和东方的数十名游客中的三位,他们之所以来到这里,正是因为新疆地处偏远,与他们通常的参照点截然不同。’

Google Azure 都能成功翻译。看文章 P8 ,里面有截图或录屏:

<Project-8 pdf2tx-MM> Python Flask应用:在浏览器中翻译PDF文件 NLTK OCR 多线程 指定翻译器 改进后的P6-CSDN博客文章浏览阅读927次,点赞21次,收藏4次。pdf2tx-MM 项目通过整合 OCR 技术和机器翻译技术,实现了 PDF 文档的内容提取和翻译,通过 Docker 化部署,应用程序可以方便地在各种环境中运行https://blog.csdn.net/davenian/article/details/142750333

在中国大模型 智谱上的 结果:

在智谱开个户,看其文档来修改P8程序,在第三次测试调用API时,没看到 unauthorized, 感觉能过... 使用的是 model="glm-4" ,加入日志输出:

2024-10-08 03:14:25,891 - INFO - HTTP Request: POST https://open.bigmodel.cn/api/paas/v4/chat/completions "HTTP/1.1 400 Bad Request"
2024-10-08 03:14:25,892 - ERROR - 智谱 AI 翻译失败: Error code: 400, with error text {"contentFilter":[{"level":1,"role":"assistant"}],"error":{"code":"1301","message":"系统检测到输入或生成内容可能包含不安全或敏感内容,请您避免输入易产生敏感内容的提 示语,感谢您的配合。"}}
2024-10-08 03:14:25,892 - ERROR - 翻译块 0 失败,尝试次数 1: Error code: 400, with error text {"contentFilter":[{"level":1,"role":"assistant"}],"error":{"code":"1301","message":"系统检测到输入或生成内容可能包含不安全或敏感内容,请您避免输入易产生敏感内容的提示语,感谢您的配合。"}}
2024-10-08 03:14:44,459 - INFO - HTTP Request: POST https://open.bigmodel.cn/api/paas/v4/chat/completions "HTTP/1.1 400 Bad Request"
2024-10-08 03:14:44,460 - ERROR - 智谱 AI 翻译失败: Error code: 400, with error text {"contentFilter":[{"level":1,"role":"assistant"}],"error":{"code":"1301","message":"系统检测到输入或生成内容可能包含不安全或敏感内容,请您避免输入易产生敏感内容的提 示语,感谢您的配合。"}}
2024-10-08 03:14:44,460 - ERROR - 翻译块 0 失败,尝试次数 2: Error code: 400, with error text {"contentFilter":[{"level":1,"role":"assistant"}],"error":{"code":"1301","message":"系统检测到输入或生成内容可能包含不安全或敏感内容,请您避免输入易产生敏感内容的提示语,感谢您的配合。"}}
2024-10-08 03:15:05,650 - INFO - HTTP Request: POST https://open.bigmodel.cn/api/paas/v4/chat/completions "HTTP/1.1 400 Bad Request"
2024-10-08 03:15:05,651 - ERROR - 智谱 AI 翻译失败: Error code: 400, with error text {"contentFilter":[{"level":1,"role":"assistant"}],"error":{"code":"1301","message":"系统检测到输入或生成内容可能包含不安全或敏感内容,请您避免输入易产生敏感内容的提 示语,感谢您的配合。"}}
2024-10-08 03:15:05,651 - ERROR - 翻译块 0 失败,尝试次数 3: Error code: 400, with error text {"contentFilter":[{"level":1,"role":"assistant"}],"error":{"code":"1301","message":"系统检测到输入或生成内容可能包含不安全或敏感内容,请您避免输入易产生敏感内容的提示语,感谢您的配合。"}}
2024-10-08 03:15:05,663 - INFO - 任务 a86000dc-3bf8-4740-a5f4-de3023b3e348: 处理完成,耗时 89.17 秒
2024-10-08 03:15:05,708 - INFO - 127.0.0.1 - - [08/Oct/2024 03:15:05] "GET /result/a86000dc-3bf8-4740-a5f4-de3023b3e348 HTTP/1.1" 200 -

想问一下,这个应该是通过了验证?

是,就只有两条路,要不换书? 要不换模型?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值