0xPlaygrounds / 0xPlaygrounds/rig-docs

Feedback for “Completion & Generation”

Abierto Apto para principiantes
#90 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
MDX
Estrellas
20
Forks
24
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
rust
Área
documentation
Tipo de issue
Documentación
Dificultad
1/5
Tiempo estimado
Menos de una hora
Estado de actividad
Tranquilo
Claridad
Bien especificado
Aptitud para principiantes
80/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.