Skip to main content

Djelia Extensions

Djelia extends the OpenAI request format wherever possible, while introducing additional options through a dedicated djelia object for settings unique to the platform.

Sending JSON Requests​

Each client exposes arbitrary body fields its own way. Pick yours:

Use the extra_body parameter to include Djelia-specific options:

translation = client.chat.completions.create(
model="banjugu-1",
messages=[{"role": "user", "content": "Bonjour"}],
extra_body={
"djelia": {
"source_language": "fra_Latn",
"target_language": "bam_Latn",
}
},
)

For a full example, see our Python integration guide.

Translation Language Pair​

When using the banjugu-1 model, both source and target languages are required:

FieldAccepted values
djelia.source_languagebam_Latn, fra_Latn, eng_Latn
djelia.target_languagebam_Latn, fra_Latn, eng_Latn

The source and target language codes must differ. Requests with missing, unknown, or identical codes will receive a 400 error.

Speech Sampling Options​

The jifili-1 model accepts the following optional parameters:

FieldRange
djelia.temperature0.0 to 2.0
djelia.top_pGreater than 0.0, up to and including 1.0
djelia.repetition_penaltyGreater than 0.0, up to 2.0

Any omitted parameter will use the model server’s default value.

The voice is set with the voice field. jifili-1 serves moussa, and the OpenAI voice names alloy, nova and coral map to it. Any other voice returns a 400 error.

Multipart Requests​

Endpoints /audio/transcriptions and /audio/translations expect multipart/form-data rather than a JSON djelia object.
To request translation into French, add the form field language=fra_Latn. If omitted, English (eng_Latn) is used by default.