[Feature]: Jev rerank cannot pass provider preferences (extra_body) and logs response bodies on errors

Aperta Adatta ai principianti
#7,620 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
62/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Inizia da openviking/models/rerank/jev_rerank.py, dove viene costruito il corpo della richiesta a partire da modello, stato e domande, e dove si trovano i rami di registrazione degli errori. Verifica come è definito RerankConfig, perché attualmente scarta le chiavi sconosciute come extra_body. È completato quando un mapping rerank.extra_body viene unito a ogni corpo di richiesta senza sovrascrivere i campi propri del client, e i log degli errori registrano solo il codice di stato o il tipo di eccezione, non il corpo della risposta né il testo dei passaggi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Version

OpenViking v0.5.4 (9dfa9017a). The same code is on current main (checked 2026-11-13).

Summary

The Jev rerank client (openviking/models/rerank/jev_rerank.py) builds its request body from the model, state and questions only, and RerankConfig ignores unknown keys, so there is no way to send provider preferences that a router such as OpenRouter supports (for example zero data retention or data_collection: deny).

Separately, an HTTP error is logged with the full response body, and any other failure with the exception text. Both can echo the reranked passages into the server log.

Reproduction
  1. Set rerank.extra_body in ov.conf. It is dropped and the request body is unchanged.
  2. Make the rerank endpoint return 400 with a body that quotes the request. The body appears in the server log.
Proposed fix
  • A rerank.extra_body mapping merged into each request body (the client's own fields win).
  • Error logs that record the status code or the exception type only.

We run a local patch that does both and are happy to open a PR.

Lingua principale
Python
Stelle
42.3k
Fork
3.5k
Merge medio
16h 23m
PR unite (30g)
555

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di volcengine/OpenViking

Tutte le issue di volcengine/OpenViking

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.