Currently, I only get the result of the image description in the pipeline.
I also need to get the total tokens consumed in the request to the remote model.
Example:
return {
"response": res.choices[0].message.content,
"tokens": {
"prompt": res.usage.prompt_tokens,
"completion": res.usage.completion_tokens,
"total": res.usage.total_tokens,
}
}