René's URL Explorer Experiment


Title: 流式输出参数 incremental_output 无效 · Issue #4 · dashscope/dashscope-sdk-python · GitHub

Open Graph Title: 流式输出参数 incremental_output 无效 · Issue #4 · dashscope/dashscope-sdk-python

X Title: 流式输出参数 incremental_output 无效 · Issue #4 · dashscope/dashscope-sdk-python

Description: 流式输出设置参数 incremental_output 无效 根据官方文档,incremental_output 默认为 False,但是实际上不设置也是全量返回的。就算手动设置 incremental_output=False,响应也是全量返回 版本 1.23.1 参考代码 response = Application.call( api_key='apikey' app_id='appid', stream=True, incremental_output=Fals...

Open Graph Description: 流式输出设置参数 incremental_output 无效 根据官方文档,incremental_output 默认为 False,但是实际上不设置也是全量返回的。就算手动设置 incremental_output=False,响应也是全量返回 版本 1.23.1 参考代码 response = Application.call( api_key='apikey' app_id='appi...

X Description: 流式输出设置参数 incremental_output 无效 根据官方文档,incremental_output 默认为 False,但是实际上不设置也是全量返回的。就算手动设置 incremental_output=False,响应也是全量返回 版本 1.23.1 参考代码 response = Application.call( api_key='apikey' app_...

Opengraph URL: https://github.com/dashscope/dashscope-sdk-python/issues/4

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"流式输出参数 incremental_output 无效","articleBody":"## 流式输出设置参数 incremental_output 无效\n根据官方文档,`incremental_output `默认为 `False`,但是实际上不设置也是全量返回的。就算手动设置 `incremental_output=False`,响应也是全量返回\n\n## 版本\n\n `1.23.1`\n\n## 参考代码\n\n```python\nresponse = Application.call(\n        api_key='apikey'\n        app_id='appid',\n        stream=True,\n        incremental_output=False,\n        prompt='帮我搜索下最近的新闻'\n    )\nfor chunk in response:\n    if chunk.output.text:\n        print(chunk.output.text)\n```\n\n## 部分响应日志\n\n```shell\nDEBUG:dashscope:Request body: {'model': '', 'parameters': {'workspace': None, 'incremental_output': False}, 'input': {'prompt': '帮我搜索下最近的新闻'}}\nDEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): dashscope.aliyuncs.com:443\n\nDEBUG:dashscope:Stream message: {'output': {'session_id': '', 'finish_reason': 'null', 'text': '根据'}, 'usage': {'models': [{'input_tokens': 490, 'output_tokens': 1, 'model_id': 'qwen-plus'}]}, 'request_id': ''}\nDEBUG:dashscope:Stream message: {'output': {'session_id': '', 'finish_reason': 'null', 'text': '根据当前'}, 'usage': {'models': [{'input_tokens': 490, 'output_tokens': 2, 'model_id': 'qwen-plus'}]}, 'request_id': ''}\nDEBUG:dashscope:Stream message: {'output': {'session_id': '', 'finish_reason': 'null', 'text': '根据当前的时间'}, 'usage': {'models': [{'input_tokens': 490, 'output_tokens': 3, 'model_id': 'qwen-plus'}]}, 'request_id': ''}\nDEBUG:dashscope:Stream message: {'output': {'session_id': '\n', 'finish_reason': 'null', 'text': '根据当前的时间(202'}, 'usage': {'models': [{'input_tokens': 490, 'output_tokens': 7, 'model_id': 'qwen-plus'}]}, 'request_id': ''}\nDEBUG:dashscope:Stream message: {'output': {'session_id': '\n', 'finish_reason': 'null', 'text': '根据当前的时间(2025年4月'}, 'usage': {'models': [{'input_tokens': 490, 'output_tokens': 11, 'model_id': 'qwen-plus'}]}, 'request_id': ''}\nDEBUG:dashscope:Stream message: {'output': {'session_id': '\n', 'finish_reason': 'null', 'text': '根据当前的时间(2025年4月21日),'}, 'usage': {'models': [{'input_tokens': 490, 'output_tokens': 15, 'model_id': 'qwen-plus'}]}, 'request_id': ''}\nDEBUG:dashscope:Stream message: {'output': {'session_id': '\n', 'finish_reason': 'null', 'text': '根据当前的时间(2025年4月21日),以下是通过分析现有'}, 'usage': {'models': [{'input_tokens': 490, 'output_tokens': 19, 'model_id': 'qwen-plus'}]}, 'request_id': ''}\nDEBUG:dashscope:Stream message: {'output': {'session_id': '\n', 'finish_reason': 'null', 'text': '根据当前的时间(2025年4月21日),以下是通过分析现有文档总结的一些最近'}, 'usage': {'models': [{'input_tokens': 490, 'output_tokens': 23, 'model_id': 'qwen-plus'}]}, 'request_id': ''}\nDEBUG:dashscope:Stream message: {'output': {'session_id': '', 'finish_reason': 'null', 'text': '根据当前的时间(2025年4月21日),以下是通过分析现有文档总结的一些最近可能的新闻方向'}, 'usage': {'models': [{'input_tokens': 490, 'output_tokens': 27, 'model_id': 'qwen-plus'}]}, 'request_id': ''}\nDEBUG:dashscope:Stream message: {'output': {'session_id': '', 'finish_reason': 'null', 'text': '根据当前的时间(2025年4月21日),以下是通过分析现有文档总结的一些最近可能的新闻方向,尽管具体日期'}, 'usage': {'models': [{'input_tokens': 490, 'output_tokens': 31, 'model_id': 'qwen-plus'}]}, 'request_id': ''}\nDEBUG:dashscope:Stream message: {'output': {'session_id': '', 'finish_reason': 'null', 'text': '根据当前的时间(2025年4月21日),以下是通过分析现有文档总结的一些最近可能的新闻方向,尽管具体日期超出了文档中的'}, 'usage': {'models': [{'input_tokens': 490, 'output_tokens': 35, 'model_id': 'qwen-plus'}]}, 'request_id': ''}\nDEBUG:dashscope:Stream message: {'output': {'session_id': '', 'finish_reason': 'null', 'text': '根据当前的时间(2025年4月21日),以下是通过分析现有文档总结的一些最近可能的新闻方向,尽管具体日期超出了文档中的时间范围,但'}, 'usage': {'models': [{'input_tokens': 490, 'output_tokens': 39, 'model_id': 'qwen-plus'}]}, 'request_id': ''}\nDEBUG:dashscope:Stream message: {'output': {'session_id': '', 'finish_reason': 'null', 'text': '根据当前的时间(2025年4月21日),以下是通过分析现有文档总结的一些最近可能的新闻方向,尽管具体日期超出了文档中的时间范围,但可以推测一些持续'}, 'usage': {'models': [{'input_tokens': 490, 'output_tokens': 43, 'model_id': 'qwen-plus'}]}, 'request_id': ''}\n```","author":{"url":"https://github.com/rmrf2020","@type":"Person","name":"rmrf2020"},"datePublished":"2025-04-21T10:30:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/4/dashscope-sdk-python/issues/4"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f4159928-5be2-e425-e39b-73fcb686b979
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCFB2:1B5BAE:2590E8:331DD0:6A629043
html-safe-nonce93597b2f6850b04914bc8126403c3de893aea33135c3b170c823eb82ff5555c5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkIyOjFCNUJBRToyNTkwRTg6MzMxREQwOjZBNjI5MDQzIiwidmlzaXRvcl9pZCI6IjYzNTYyMDY4MTcwNzAxOTA2NTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace4175b5c7d65b8095b68595b14890baac3bf6ef4ff63fb66954ee95fa7d28d90
hovercard-subject-tagissue:3008115182
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/dashscope/dashscope-sdk-python/4/issue_layout
twitter:imagehttps://opengraph.githubassets.com/284e898ad8586d4f2caf79fc7d84974ac092dc4443f39a46816b92ddacf4db5f/dashscope/dashscope-sdk-python/issues/4
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/284e898ad8586d4f2caf79fc7d84974ac092dc4443f39a46816b92ddacf4db5f/dashscope/dashscope-sdk-python/issues/4
og:image:alt流式输出设置参数 incremental_output 无效 根据官方文档,incremental_output 默认为 False,但是实际上不设置也是全量返回的。就算手动设置 incremental_output=False,响应也是全量返回 版本 1.23.1 参考代码 response = Application.call( api_key='apikey' app_id='appi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamermrf2020
hostnamegithub.com
expected-hostnamegithub.com
Noneac2209d8cb6970a1bd08cb0a3f821d7166ac544c2ca1c87819c335bb84310ecd
turbo-cache-controlno-preview
go-importgithub.com/dashscope/dashscope-sdk-python git https://github.com/dashscope/dashscope-sdk-python.git
octolytics-dimension-user_id127009744
octolytics-dimension-user_logindashscope
octolytics-dimension-repository_id944303085
octolytics-dimension-repository_nwodashscope/dashscope-sdk-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id944303085
octolytics-dimension-repository_network_root_nwodashscope/dashscope-sdk-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2fca8cd598678aaa64706088ad13b4e19177e108
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/dashscope/dashscope-sdk-python/issues/4#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdashscope%2Fdashscope-sdk-python%2Fissues%2F4
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdashscope%2Fdashscope-sdk-python%2Fissues%2F4
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=dashscope%2Fdashscope-sdk-python
Reloadhttps://github.com/dashscope/dashscope-sdk-python/issues/4
Reloadhttps://github.com/dashscope/dashscope-sdk-python/issues/4
Reloadhttps://github.com/dashscope/dashscope-sdk-python/issues/4
Please reload this pagehttps://github.com/dashscope/dashscope-sdk-python/issues/4
dashscope https://github.com/dashscope
dashscope-sdk-pythonhttps://github.com/dashscope/dashscope-sdk-python
Notifications https://github.com/login?return_to=%2Fdashscope%2Fdashscope-sdk-python
Fork 27 https://github.com/login?return_to=%2Fdashscope%2Fdashscope-sdk-python
Star 68 https://github.com/login?return_to=%2Fdashscope%2Fdashscope-sdk-python
Code https://github.com/dashscope/dashscope-sdk-python
Issues 0 https://github.com/dashscope/dashscope-sdk-python/issues
Pull requests 1 https://github.com/dashscope/dashscope-sdk-python/pulls
Actions https://github.com/dashscope/dashscope-sdk-python/actions
Projects https://github.com/dashscope/dashscope-sdk-python/projects
Security and quality 0 https://github.com/dashscope/dashscope-sdk-python/security
Insights https://github.com/dashscope/dashscope-sdk-python/pulse
Code https://github.com/dashscope/dashscope-sdk-python
Issues https://github.com/dashscope/dashscope-sdk-python/issues
Pull requests https://github.com/dashscope/dashscope-sdk-python/pulls
Actions https://github.com/dashscope/dashscope-sdk-python/actions
Projects https://github.com/dashscope/dashscope-sdk-python/projects
Security and quality https://github.com/dashscope/dashscope-sdk-python/security
Insights https://github.com/dashscope/dashscope-sdk-python/pulse
流式输出参数 incremental_output 无效https://github.com/dashscope/dashscope-sdk-python/issues/4#top
https://github.com/rmrf2020
rmrf2020https://github.com/rmrf2020
on Apr 21, 2025https://github.com/dashscope/dashscope-sdk-python/issues/4#issue-3008115182
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.