Files
litellm/tests/openai_misc_endpoints_tests/out.jsonl
T
Ishaan Jaff 47e12802df (feat) /batches Add support for using /batches endpoints in OAI format (#7402)
* run azure testing on ci/cd

* update docs on azure batches endpoints

* add input azure.jsonl

* refactor - use separate file for batches endpoints

* fixes for passing custom llm provider to /batch endpoints

* pass custom llm provider to files endpoints

* update azure batches doc

* add info for azure batches api

* update batches endpoints

* use simple helper for raising proxy exception

* update config.yml

* fix imports

* update tests

* use existing settings

* update env var used

* update configs

* update config.yml

* update ft testing
2024-12-24 16:58:05 -08:00

2 lines
1.3 KiB
JSON

{"id": "batch_req_676aee0162f88190b707f57aa28ee2e6", "custom_id": "ae006110bb364606||/workspace/saved_models/meta-llama/Meta-Llama-3.1-8B-Instruct", "response": {"status_code": 200, "request_id": "d5d91547aef5fb21997a8d67fe4785fa", "body": {"id": "chatcmpl-Ai2uZRrTVwowbwysu9TorTUYf3qFq", "object": "chat.completion", "created": 1735060987, "model": "gpt-4o-2024-05-13", "choices": [{"index": 0, "message": {"role": "assistant", "content": "{\n \"user_query\": \"What are the benefits of a plant-based diet?\",\n \"ai_response\": \"A plant-based diet offers numerous benefits, including improved heart health, weight management, and a lower risk of chronic diseases. It is rich in essential nutrients, fiber, and antioxidants, which can help reduce inflammation and improve overall well-being. Additionally, a plant-based diet is environmentally sustainable and can contribute to reduced greenhouse gas emissions and conservation of natural resources.\"\n}", "refusal": null}, "logprobs": null, "finish_reason": "stop"}], "usage": {"prompt_tokens": 51, "completion_tokens": 95, "total_tokens": 146, "prompt_tokens_details": {"cached_tokens": 0, "audio_tokens": 0}, "completion_tokens_details": {"reasoning_tokens": 0, "audio_tokens": 0, "accepted_prediction_tokens": 0, "rejected_prediction_tokens": 0}}, "system_fingerprint": "fp_0325da12f2"}}, "error": null}