Llama 3.1 8B Instruct
Llama 3.1 represents Meta's most advanced language model to date. It integrates state-of-the-art techniques in natural language processing to deliver unparalleled performance in various tasks.
POST
/project/p-{Project_Id}/genai/llama3_1_8b_instruct/v1/chat/completionsQuery parameters
project_idQueryintegerrequiredProject ID
Request body
application/json
example
llama3_1_8b_instructResponses
No StreamSuccessful response (Non-streaming)
example
chat-a8fa533f74b346688f780c3b2e14638fexample
chat.completionexample
1738753122example
llama3_1_8b_instructStreamSuccessful response (Streaming mode)
example
data: {"id":"chat-b3b5ae1d266c428f894f05e33a39ea5b","object":"chat.completion.chunk","created":1738752367,"model":"llama3_1_8b_instruct","choices":[{"index":0,"delta":{"role":"assistant"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chat-b3b5ae1d266c428f894f05e33a39ea5b","object":"chat.completion.chunk","created":1738752367,"model":"llama3_1_8b_instruct","choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chat-b3b5ae1d266c428f894f05e33a39ea5b","object":"chat.completion.chunk","created":1738752367,"model":"llama3_1_8b_instruct","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]}
data: {"id":"chat-b3b5ae1d266c428f894f05e33a39ea5b","object":"chat.completion.chunk","created":1738752367,"model":"llama3_1_8b_instruct","choices":[{"index":0,"delta":{"content":" How"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chat-b3b5ae1d266c428f894f05e33a39ea5b","object":"chat.completion.chunk","created":1738752367,"model":"llama3_1_8b_instruct","choices":[{"index":0,"delta":{"content":" can"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chat-b3b5ae1d266c428f894f05e33a39ea5b","object":"chat.completion.chunk","created":1738752367,"model":"llama3_1_8b_instruct","choices":[{"index":0,"delta":{"content":" I"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chat-b3b5ae1d266c428f894f05e33a39ea5b","object":"chat.completion.chunk","created":1738752367,"model":"llama3_1_8b_instruct","choices":[{"index":0,"delta":{"content":" assist"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chat-b3b5ae1d266c428f894f05e33a39ea5b","object":"chat.completion.chunk","created":1738752367,"model":"llama3_1_8b_instruct","choices":[{"index":0,"delta":{"content":" you"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chat-b3b5ae1d266c428f894f05e33a39ea5b","object":"chat.completion.chunk","created":1738752367,"model":"llama3_1_8b_instruct","choices":[{"index":0,"delta":{"content":" today"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chat-b3b5ae1d266c428f894f05e33a39ea5b","object":"chat.completion.chunk","created":1738752367,"model":"llama3_1_8b_instruct","choices":[{"index":0,"delta":{"content":"?"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chat-b3b5ae1d266c428f894f05e33a39ea5b","object":"chat.completion.chunk","created":1738752367,"model":"llama3_1_8b_instruct","choices":[{"index":0,"delta":{"content":""},"logprobs":null,"finish_reason":"stop","stop_reason":null}]}
data: [DONE]