注册并分享邀请链接,可获得视频播放与邀请奖励。

与「body」相关的搜索结果

body 贴吧
一个关键词就是一个贴吧,路径全站唯一。
创建贴吧
用户
未找到
包含 body 的内容
建议收藏,用到时照着做。做完你能让 DeepSeek 自己决定“要不要调用你写的函数”,并把结果用人话讲回来。 AI 能查天气、查订单,是它自己去查的吗?DeepSeek 官方一句话拆台:模型本身不执行任何函数 这是 DeepSeek 官方 API 文档里 Tool Calls(工具调用)一页。先说结论: 官方原话是,函数要由你自己提供,模型本身不执行具体函数。它只负责说“我想调这个函数、参数是这些”,真正去跑的是你的代码。 先说清词。 工具调用(Tool Calls),是让模型能用外部工具的功能,比如查天气、查数据库。 函数(function),是你自己写好的一段代码,模型只会“点名”它。 tool_call_id(工具调用编号),是模型每次点名时附带的一个号码,你回传结果时要带上它,模型才知道你在回答哪一次。 strict 模式(严格模式,Beta 测试版),是让模型点名时严格按你定义的格式填参数。 一个真实例子:官方示例问“杭州天气怎么样”,模型返回的是 get_weather 这个函数和参数 location 等于杭州,你的代码去查到“24℃”,再交给模型,模型才说“杭州现在 24 度”。 先把话说全: 官方示例用的是非思考模式,请求里加 extra_body 把 thinking 的 type 设成 disabled。 官方写明:从 DeepSeek-V3.2 开始,思考模式下也能用工具调用,细节看官方 Thinking Mode 一页。 官方写明:Chat Completion 接口不支持在对话中间插入不是模型生成的工具调用,要插的话请改用 Anthropic API 或 Responses API。 strict 模式目前是 Beta,要用测试版地址。 一、先看懂整个流程 官方给的执行流程是四步:用户问杭州天气;模型返回要调用 get_weather,参数是杭州;你的代码真的去调用 get_weather,把结果交给模型;模型用自然语言回答“杭州现在 24 度”。 二、照官方示例做一遍 第一步:去 DeepSeek 开放平台拿一个 API key,电脑装好 Python 和 openai 库。 第二步:创建客户端,base_url 写 DeepSeek 官方接口地址(官方文档第一屏就有),api_key 填你的。 第三步:写 tools 清单。每个工具包含 type 等于 function,再写 name(函数名)、description(描述,告诉模型什么时候用)、parameters(参数)。官方示例的函数叫 get_weather,描述是“获取某地天气,用户须先提供地点”,参数 location 是字符串,并且在 required 里。 第四步:发第一次请求,model 官方示例写 deepseek-flash,把 messages 和 tools 一起传,并加上 thinking 关闭的设置。 第五步:从返回里取 tool_calls 的第一项,先把模型这条消息原样追加进 messages。 第六步:你的代码去执行函数,再追加一条 role 是 tool 的消息,带上刚才的 tool_call_id,content 写结果,官方示例写的是 24℃。 第七步:再发一次请求,这次模型就会用自然语言回答。 三、想要更稳:strict 严格模式 第八步:base_url 改成官方文档里写明的 beta 版接口地址(就是原地址后面加 /beta)。 第九步:每个 function 都加上 strict 等于 true。 第十步:服务器会检查你的 JSON Schema(结构说明),格式不合规或用了不支持的类型,会直接返回错误信息。 官方支持的类型是:object、string、number、integer、boolean、array、enum、anyOf,另外 $ref 和 $def 可以复用和做递归。 四、strict 的硬规矩 对象里所有属性都必须写进 required,并且 additionalProperties 必须设成 false。 字符串可以用 pattern(正则)和 format,官方列出的格式有 email、hostname、ipv4、ipv6、uuid,但不支持 minLength 和 maxLength。 数字支持 const、default、minimum、maximum、exclusiveMinimum、exclusiveMaximum、multipleOf。 数组不支持 minItems 和 maxItems。 五、看到什么算成功 第一次返回的是函数点名,不是答案;第二次返回的才是自然语言答案,内容里有你的函数结果。 六、卡住怎么办 strict 报错:先检查是不是漏写 required 或忘了 additionalProperties 设 false,再检查有没有用到 minLength、maxItems 这类官方不支持的写法。 结论:工具调用不是模型替你干活,而是模型“点名”、你的代码“动手”。想让点名更准,就用 strict。把这条复制链接发给他,下次他说 AI 查不到东西,先让他确认函数是不是自己写了。 你卡在第几步?评论区告诉我。同系列前几篇在我主页。 收藏版:5 步速查 一、tools 里写清函数名、描述、参数 二、第一次请求拿到 tool_calls 三、自己执行函数,回传 role 为 tool 的消息并带 tool_call_id 四、第二次请求拿到自然语言答案 五、想更稳就用 beta 地址加 strict 等于 true 常见坑 3 条 一、以为模型会自己执行函数,其实要你的代码去跑。 二、回传结果忘了带 tool_call_id。 三、strict 里漏了 required 或 additionalProperties 设成 false。 复制即用提示词:我想让模型调用一个叫 你的函数名 的函数,它需要这些参数:写参数。请帮我写出符合 DeepSeek Tool Calls 格式的 tools 清单,每个参数都写 description,并改成 strict 模式需要的写法。 S1哥观点:这篇最狠的地方,是官方把话挑明了:模型不执行函数,只负责点名。很多人以为 AI 在后台自己动手,其实动手的永远是你的代码。 真正的信号是:工具调用的难点不在模型,在你把函数描述写得多清楚。就像派活给新人,说明写得含糊,他再聪明也会点错人。 你现在想让 DeepSeek 调用的是什么,查数据还是发消息?评论区告诉我。 今天送:DeepSeek 工具调用速查卡,评论区第一条直接拿。 参考:DeepSeek 官方 API 文档 Tool Calls(S1哥 整理)
显示更多
Omg😱I can't really Believe this on my body
0
129
248
96
转发到社区
Everyone believes CUDA is NVIDIA's moat, the reason we've maintained our dominance in the AI era. I've never believed that. NVIDIA has only one true moat: its people. And the most important of them is Jensen Huang. I've worked on CUDA compilers, libraries, and DSLs for eight years, from Volta to Rubin. I think I've earned the right to share my perspective on what NVIDIA's moat really is. I hope you'll bear with me. 1. What is CUDA? Many people think CUDA is just a programming language and its compiler, and that NVIDIA's moat comes from the massive amount of software written in CUDA, making it impossible for developers to leave NVIDIA GPUs. This is completely wrong. It's an incredibly naive understanding of CUDA. To me, CUDA is everything NVIDIA does. CUDA isn't just a language, software, or hardware architecture. It's a product defined by a unique customer experience. When you find GPU programming too difficult, CUDA gives you an easier way. When your GPU code isn't fast enough, NVIDIA engineers respond and help you solve it. When a handful of GPUs can no longer push your technology forward, NVIDIA has already scaled its computing platform from desktops to massive data centers. When you need more data centers than anyone else can supply, NVIDIA has already secured wafer and HBM capacity years in advance to meet your demand. That experience is CUDA. It's made possible by the relentless, day-to-day work of everyone at NVIDIA. And the person who brings all these people together, who gives them a shared vision and purpose, is Jensen Huang. 2. What made CUDA possible? Patience. Perseverance. An unwavering commitment to a vision. Around 2006, NVIDIA bet that the future would demand far more computing power, and began transforming GPUs from graphics processors into a platform for general-purpose computing. Initially, it was a commercial disaster. The added costs hurt margins, the market wasn't ready, and the strategy faced enormous skepticism and pressure, including questions from the board. But Jensen persisted. For roughly a decade, NVIDIA kept investing in CUDA, building its hardware, software, and developer ecosystem long before the commercial payoff became clear. Eventually, deep learning arrived. And NVIDIA was ready. Today, this sounds like an inspiring story. But for those who lived through it, it meant a decade of perseverance, doubt, and being misunderstood. Looking back at the history of technology, how many people could have done the same? This is what I've always loved most about NVIDIA. And now, Jensen has been pushed out. This won't kill NVIDIA. The company can still create tremendous commercial value. But it has killed NVIDIA's soul. And how far can a body go without its soul? If this is how Jensen Huang is treated today, how will those of us who built CUDA be treated tomorrow? I love NVIDIA deeply, but I have to say it: NVIDIA is dead.
显示更多
0
9
144
25
转发到社区
Yes or no to my body type? Be honest
0
95
2.6K
125
转发到社区
AlphaGenome 2 is helping uncover the cellular drivers of disease, giving scientists a powerful tool to predict how DNA variants impact specific cell types. Every cell in our body shares the same DNA blueprint, but different cell types (like heart muscle cells vs. immune cells) read that blueprint differently. This new @GoogleDeepMind model predicts how these specialized cells interpret DNA, turning genetic code into biological insights. Building on AlphaGenome 1 this makes it significantly easier for researchers to link genetic findings to the root causes of disease in the specific cells where they actually unfold.
显示更多
0
136
2.3K
239
转发到社区
Five suicide attempts couldn’t kill her. An HIV diagnosis was supposed to finish the job. Instead, she walked into a body modification studio and started cutting away everything that made her human. Both ears. 32 teeth. Her nose. She split her tongue, implanted 18 horns into her skull, and covered every inch of skin in scales. Today she goes by “it” - and says she’s never been happier. Her full name is Eva Tiamat Baphhomet Medusa. The world calls her the Dragon Lady. She calls herself “the world’s most modified transsexual.” Before any of this, she was Richard Hernandez - a vice president at a bank in Texas. She grew up in Bruni, a town of 300 people near the Mexican border. As a freshman in high school, she walked up and down the streets screaming “I’m gay” at the top of her lungs in one of the most machismo regions in the country. “Closets are for clothes and tennis shoes,” she says. At 18, she left for Houston. Fresh from a town with no skyscrapers, she didn’t know you couldn’t trust just anyone. Two men raped her. She doesn’t hate them. “I’m not them,” she says. She became a banker. Built a career. Then came the HIV diagnosis, which later progressed to AIDS. She left the bank to take care of her health and nearly died. That’s when something shifted. “I decided I’m not going to die looking like a human,” she told Soft White Underbelly. “Being human has been such a negative part of life.” She spent over $60,000 on body modifications. Not with doctors - with body modification artists. She was the fifth person in the world to get horns implanted into her cranium. She was the first person ever to have both ears surgically removed for cosmetic reasons. She had her testicles removed and plans a full penectomy. “I will be a genderless dragon,” she says. “That’s what dragons are.” Her son hasn’t spoken to her since the transformation. She did some of the modifications specifically so he could see what his father was becoming. “His weird-looking, strange, used to be a man, is now a woman, is now a reptilian, dad,” she says. She was abandoned in the woods as a child by her birth parents. She denounced them in favor of a snake. She tried to take her own life five times before the transformation gave her a reason to stay. “My transformation is by and large what saved my life after five failed suicide attempts,” she says. “I am truly happy for the first time in my life.” She prefers the pronoun “it.” Just like a snake. She swallows food whole because she only has six teeth left - representing the mouth of a rattlesnake. Sirens drive her crazy because without ears, everything sounds louder. She makes cotton candy for the neighborhood kids, and her neighbors say her energy is “the most gentle and pleasant” they’ve ever been around. In the video below, you can see Tiamat sitting across from the interviewer with her full-face scale tattoos, horn implants, and no ears, calmly describing how she eats, why she removed her teeth, and the moment she decided to stop being human. Some will say she’s mentally ill and needs help, not a body modification studio. Others will say she found the only thing that kept her alive when nothing else could. If removing every trace of your humanity is what finally made you happy - were you ever really human to begin with?
显示更多
0
526
7K
436
转发到社区
He’s bigger than all the body builders. 🤣
0
106
1.3K
89
转发到社区