0xPlaygrounds / 0xPlaygrounds/rig-docs
Feedback for “Completion & Generation”
- 主要语言
- MDX
- 星标
- 20
- 派生
- 24
- PR 合并指标
- 30 天内没有已合并 PR
描述
Api of completion_model has been changed in the latest version. There is no `model.prompt` now.
https://docs.rig.rs/docs/concepts/completion#basic-completion
## Basic Completion
```
let openai = openai::Client::from_env();
let model = openai.completion_model("gpt-4o");
let response = model
.prompt("Explain quantum computing")
.await?;
```
贡献指南
调研方向
The issue points to outdated documentation for the completion_model API in the Rig Framework. Look at the linked documentation page (docs/concepts/completion) and find the example code block. Compare with the current Rust API to see the correct method names. Update the example to use the current API, likely replacing .prompt() with the new method. Verify by checking the source code or recent examples in the repository.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- rust
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 冷清
- 描述清晰度
- 描述清楚
- 新手友好度
- 80/100