0xPlaygrounds / 0xPlaygrounds/rig-docs
Feedback for “Completion & Generation”
- Langage dominant
- MDX
- Étoiles
- 20
- Forks
- 24
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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?;
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- rust
- Domaine
- documentation
- Type d'issue
- Documentation
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- Calme
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 80/100