0xPlaygrounds / 0xPlaygrounds/rig-docs

Feedback for “Completion & Generation”

Đang mở Phù hợp với người mới
#90 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
MDX
Star
20
Fork
24
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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?;
```

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

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

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
rust
Lĩnh vực
documentation
Loại issue
Tài liệu
Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
80/100

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.