Streaming Outputs with the Foundation Model API

Streaming Outputs with the Foundation Model API#

This notebook covers how to stream responses from chat completion or text completion models. Streaming enables us to begin returning tokens as they are generated, before the entire response is complete. Streaming can dramatically reduce the time it takes for users to see a response.

%pip install --upgrade --force-reinstall databricks-genai-inference
dbutils.library.restartPython()

Streaming with the Python SDK#

To enable streaming, include the argument stream=True in calls to chat completion or text completion endpoints. Here’s how to do it with the ChatCompletion.create method in the Python SDK:

from databricks_genai_inference import ChatCompletion

def stream_chat_reply(model, user_message, max_tokens=2048):
    messages = [{"role": "user", "content": user_message}]
    generator = ChatCompletion.create(
        model=model,
        max_tokens=max_tokens,
        stream=True,
        messages=messages,
    )

    for response in generator:
        # Using `end=''` to avoid adding a new line after each print statement
        print(response.message, end='')

With streaming enabled, the create method returns a generator that provides a sequence of ChatCompletionChunkObjects. The completion itself is included in the ChatCompletionChunkObject.message attribute, so we can iterate over generator and print each message in order to stream the results to the user.

stream_reply(model="mixtral-8x7b-instruct", user_message="Tell me in detail how to make chocolate chip cookies.")
1. Gather ingredients: 
   - 2 1/4 cups all-purpose flour
   - 1/2 teaspoon baking soda
   - 1 cup unsalted butter, room temperature
   - 1/2 cup granulated sugar
   - 1 cup packed light-brown sugar
   - 1 teaspoon salt
   - 2 teaspoons pure vanilla extract
   - 2 large eggs
   - 2 cups semisweet and/or milk chocolate chips

2. Preheat oven to 350°F (180°C). In a small bowl, whisk together flour and baking soda; set aside.

3. In the bowl of an electric mixer fitted with the paddle attachment, combine butter with both sugars; beat on medium speed until light and fluffy.

4. Reduce speed to low; add salt, vanilla, and eggs. Beat until well mixed, about 1 minute.

5. Add flour mixture; mix until just combined. Stir in chocolate chips.

6. Drop heaping tablespoon-size balls of dough about 2 inches apart on baking sheets lined with parchment paper.

7. Bake until cookies are golden around the edges, but still soft in the center, 8 to 10 minutes.

8. Remove from oven, and let cookies cool on baking sheet for 2 minutes. Transfer cookies to a wire rack to cool completely.

Tips:
- For a chewy cookie, take them out of the oven when they are slightly undercooked and let them finish cooking on the baking sheet.
- You can add other mix-ins like nuts or dried fruit if desired.
- Always preheat your oven before baking.
- Make sure your butter is at room temperature to ensure proper creaming with the sugars.
- Do not overmix the dough as it can lead to tough cookies.
- Store cooled cookies in an airtight container at room temperature for up to 1 week.

This works in much the same way for the text completion endpoint.

from databricks_genai_inference import Completion

def stream_text_reply(model, user_prompt, max_tokens=2048):
    generator = Completion.create(
        model=model,
        max_tokens=max_tokens,
        stream=True,
        prompt=user_prompt,
    )

    for response in generator:
        # Using `end=''` to avoid adding a new line after each print statement
        print(response.text, end='')

stream_text_reply(model="mpt-30b-instruct",
                  user_prompt="Tell me in detail how to make chocolate chip cookies.")
Ah, this is a very popular recipe.  Here are the basic ingredients, which you can always modify to your own tastes:
1 cup of butter, softened
1 cup of brown sugar
2 eggs
1 tsp vanilla
2 1/4 cups of flour
1 tsp of baking soda
1/4 tsp of salt
2 cups of chocolate chips

Some additional tips:  be sure to use softened butter and not melted butter, and also be sure to use a high-quality chocolate chip.  Also, be sure to cream the butter and sugar together well, and also be sure to mix in the eggs and vanilla well.  For the flour, baking soda, and salt, you want to mix them together dry, and then add them to the wet ingredients.  Finally, I recommend using a spoon to mix in the chocolate chips, since that gives a nice, even mixture.

Now, for baking, you want to preheat the oven to 375, and then spoon cookie dough onto a baking sheet, leaving about 2 inches of space between cookies.  You may want to use a cookie scoop for this, or you may want to just eyeball it.  You want to bake these cookies

Streaming responses with the REST API#

Including "stream": true in the REST API request will result in series of ChatCompletionChunk objects when calling a Chat model endpoint.

%sh
curl \
-u token:$DATABRICKS_TOKEN \
-X POST \
-H "Content-Type: application/json" \
-d '{
  "messages": [
    {
      "role": "system",
      "content": "You are a helpful assistant."
    },
    {
      "role": "user",
      "content": "Tell me in detail how to make chocolate chip cookies."
    }
  ],
  "max_tokens": 2048,
  "stream": true
}' \
https://e2-dogfood.staging.cloud.databricks.com/serving-endpoints/databricks-mixtral-8x7b-instruct/invocations
  

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"1"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":1,"total_tokens":29}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"."},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":2,"total_tokens":30}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" G"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":3,"total_tokens":31}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"ather"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":4,"total_tokens":32}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" your"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":5,"total_tokens":33}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" ingredients"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":6,"total_tokens":34}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":":"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":7,"total_tokens":35}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" To"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":8,"total_tokens":36}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" make"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":9,"total_tokens":37}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" chocolate"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":10,"total_tokens":38}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" chip"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":11,"total_tokens":39}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" cookies"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":12,"total_tokens":40}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":","},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":13,"total_tokens":41}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" you"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":14,"total_tokens":42}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" will"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":15,"total_tokens":43}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" need"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":16,"total_tokens":44}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" the"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":17,"total_tokens":45}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" following"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":18,"total_tokens":46}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" ingredients"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":19,"total_tokens":47}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":":"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":20,"total_tokens":48}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":21,"total_tokens":49}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":22,"total_tokens":50}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"*"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":23,"total_tokens":51}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" "},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":24,"total_tokens":52}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"1"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":25,"total_tokens":53}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" cup"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":26,"total_tokens":54}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" ("},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":27,"total_tokens":55}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"2"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":28,"total_tokens":56}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" sticks"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":29,"total_tokens":57}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":")"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":30,"total_tokens":58}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" uns"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":31,"total_tokens":59}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"alt"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":32,"total_tokens":60}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"ed"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":33,"total_tokens":61}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" butter"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":34,"total_tokens":62}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":","},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":35,"total_tokens":63}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" soft"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":36,"total_tokens":64}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"ened"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":37,"total_tokens":65}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":38,"total_tokens":66}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"*"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":39,"total_tokens":67}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" "},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":40,"total_tokens":68}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"1"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":41,"total_tokens":69}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" cup"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":42,"total_tokens":70}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" white"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":43,"total_tokens":71}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" sugar"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":44,"total_tokens":72}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":45,"total_tokens":73}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"*"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":46,"total_tokens":74}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" "},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":47,"total_tokens":75}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"1"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":48,"total_tokens":76}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" cup"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":49,"total_tokens":77}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" packed"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":50,"total_tokens":78}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" brown"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":51,"total_tokens":79}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" sugar"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":52,"total_tokens":80}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":53,"total_tokens":81}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"*"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":54,"total_tokens":82}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" "},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":55,"total_tokens":83}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"2"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":56,"total_tokens":84}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" eggs"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":57,"total_tokens":85}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":58,"total_tokens":86}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"*"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":59,"total_tokens":87}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" "},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":60,"total_tokens":88}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"2"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":61,"total_tokens":89}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" teas"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":62,"total_tokens":90}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"po"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":63,"total_tokens":91}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"ons"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":64,"total_tokens":92}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" van"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":65,"total_tokens":93}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"illa"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":66,"total_tokens":94}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" extract"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":67,"total_tokens":95}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":68,"total_tokens":96}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"*"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":69,"total_tokens":97}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" "},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":70,"total_tokens":98}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"3"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":71,"total_tokens":99}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" cups"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":72,"total_tokens":100}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" all"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":73,"total_tokens":101}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"-"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":74,"total_tokens":102}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"pur"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":75,"total_tokens":103}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"pose"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":76,"total_tokens":104}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" flour"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":77,"total_tokens":105}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":78,"total_tokens":106}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"*"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":79,"total_tokens":107}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" "},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":80,"total_tokens":108}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"1"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":81,"total_tokens":109}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" teas"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":82,"total_tokens":110}}

data: {"id":"604bbef0-44ac-4835-be63-70a

*** WARNING: max output size exceeded, skipping output. ***

tant","content":" Use"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":640,"total_tokens":668}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" a"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":641,"total_tokens":669}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" cookie"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":642,"total_tokens":670}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" sc"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":643,"total_tokens":671}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"oop"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":644,"total_tokens":672}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":":"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":645,"total_tokens":673}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" Using"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":646,"total_tokens":674}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" a"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":647,"total_tokens":675}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" cookie"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":648,"total_tokens":676}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" sc"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":649,"total_tokens":677}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"oop"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":650,"total_tokens":678}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" will"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":651,"total_tokens":679}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" help"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":652,"total_tokens":680}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" you"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":653,"total_tokens":681}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" portion"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":654,"total_tokens":682}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" out"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":655,"total_tokens":683}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" the"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":656,"total_tokens":684}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" dough"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":657,"total_tokens":685}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" even"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":658,"total_tokens":686}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"ly"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":659,"total_tokens":687}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":","},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":660,"total_tokens":688}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" ensuring"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":661,"total_tokens":689}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" that"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":662,"total_tokens":690}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" all"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":663,"total_tokens":691}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" of"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":664,"total_tokens":692}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" your"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":665,"total_tokens":693}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" cookies"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":666,"total_tokens":694}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" are"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":667,"total_tokens":695}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" the"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":668,"total_tokens":696}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" same"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":669,"total_tokens":697}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" size"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":670,"total_tokens":698}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" and"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":671,"total_tokens":699}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" b"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":672,"total_tokens":700}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"ake"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":673,"total_tokens":701}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" at"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":674,"total_tokens":702}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" the"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":675,"total_tokens":703}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" same"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":676,"total_tokens":704}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" rate"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":677,"total_tokens":705}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"."},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":678,"total_tokens":706}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":679,"total_tokens":707}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"*"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":680,"total_tokens":708}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" Don"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":681,"total_tokens":709}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"'"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":682,"total_tokens":710}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"t"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":683,"total_tokens":711}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" over"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":684,"total_tokens":712}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"b"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":685,"total_tokens":713}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"ake"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":686,"total_tokens":714}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" the"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":687,"total_tokens":715}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" cookies"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":688,"total_tokens":716}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":":"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":689,"total_tokens":717}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" Keep"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":690,"total_tokens":718}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" an"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":691,"total_tokens":719}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" eye"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":692,"total_tokens":720}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" on"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":693,"total_tokens":721}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" the"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":694,"total_tokens":722}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" cookies"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":695,"total_tokens":723}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" while"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":696,"total_tokens":724}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" they"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":697,"total_tokens":725}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" are"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":698,"total_tokens":726}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" baking"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":699,"total_tokens":727}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":","},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":700,"total_tokens":728}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" and"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":701,"total_tokens":729}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" remove"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":702,"total_tokens":730}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" them"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":703,"total_tokens":731}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" from"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":704,"total_tokens":732}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" the"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":705,"total_tokens":733}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" oven"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":706,"total_tokens":734}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" as"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":707,"total_tokens":735}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" soon"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":708,"total_tokens":736}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" as"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":709,"total_tokens":737}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" they"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":710,"total_tokens":738}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" are"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":711,"total_tokens":739}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" set"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":712,"total_tokens":740}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" at"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":713,"total_tokens":741}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" the"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":714,"total_tokens":742}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" edges"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":715,"total_tokens":743}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"."},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":716,"total_tokens":744}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" This"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":717,"total_tokens":745}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" will"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":718,"total_tokens":746}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" help"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":719,"total_tokens":747}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" ensure"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":720,"total_tokens":748}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" that"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":721,"total_tokens":749}}
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   254    0     0  100   254      0   1242 --:--:-- --:--:-- --:--:--  1239
100 29181    0 28927  100   254  25051    219  0:00:01  0:00:01 --:--:-- 25264
100 60401    0 60147  100   254  27892    117  0:00:02  0:00:02 --:--:-- 28002
100 91692    0 91438  100   254  28936     80  0:00:03  0:00:03 --:--:-- 29016
100  119k    0  119k  100   254  29412     61  0:00:04  0:00:04 --:--:-- 29472
100  149k    0  149k  100   254  29699     49  0:00:05  0:00:05 --:--:-- 30924
100  179k    0  179k  100   254  29863     41  0:00:06  0:00:06 --:--:-- 30975
100  209k    0  209k  100   254  29952     35  0:00:07  0:00:07 --:--:-- 30838
100  219k    0  219k  100   254  29995     33  0:00:07  0:00:07 --:--:-- 30770
data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" they"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":722,"total_tokens":750}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" are"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":723,"total_tokens":751}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" soft"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":724,"total_tokens":752}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" and"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":725,"total_tokens":753}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" che"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":726,"total_tokens":754}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"wy"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":727,"total_tokens":755}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" in"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":728,"total_tokens":756}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" the"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":729,"total_tokens":757}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":" middle"},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":730,"total_tokens":758}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":"."},"finish_reason":null}],"usage":{"prompt_tokens":28,"completion_tokens":731,"total_tokens":759}}

data: {"id":"604bbef0-44ac-4835-be63-70a4c0870278","object":"chat.completion.chunk","created":1707146947,"model":"mixtral-8x7b-instruct-v0.1","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop"}],"usage":{"prompt_tokens":28,"completion_tokens":732,"total_tokens":760}}

data: [DONE]

Calling on a completion model will return a series of text_completions.

%sh
curl \
 -u token:$DATABRICKS_TOKEN \
 -X POST \
 -H "Content-Type: application/json" \
 -d '{"prompt": "Tell me in detail how to make chocolate chip cookies.",
      "stream": true}' \
https://e2-dogfood.staging.cloud.databricks.com/serving-endpoints/databricks-mpt-30b-instruct/invocations
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":"Sure","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":1,"total_tokens":40}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":",","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":2,"total_tokens":41}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" you","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":3,"total_tokens":42}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":"’","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":4,"total_tokens":43}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":"ll","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":5,"total_tokens":44}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" want","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":6,"total_tokens":45}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" to","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":7,"total_tokens":46}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" start","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":8,"total_tokens":47}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" by","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":9,"total_tokens":48}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" mixing","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":10,"total_tokens":49}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" together","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":11,"total_tokens":50}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" 2","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":12,"total_tokens":51}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" cups","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":13,"total_tokens":52}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" of","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":14,"total_tokens":53}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" flour","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":15,"total_tokens":54}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":",","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":16,"total_tokens":55}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" 1","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":17,"total_tokens":56}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" cup","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":18,"total_tokens":57}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" of","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":19,"total_tokens":58}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" brown","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":20,"total_tokens":59}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" sugar","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":21,"total_tokens":60}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":",","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":22,"total_tokens":61}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" and","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":23,"total_tokens":62}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" 1","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":24,"total_tokens":63}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":"/","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":25,"total_tokens":64}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":"2","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":26,"total_tokens":65}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" teaspoon","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":27,"total_tokens":66}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" of","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":28,"total_tokens":67}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" baking","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":29,"total_tokens":68}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" soda","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":30,"total_tokens":69}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":".","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":31,"total_tokens":70}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" Next","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":32,"total_tokens":71}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":",","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":33,"total_tokens":72}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" blend","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":34,"total_tokens":73}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" in","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":35,"total_tokens":74}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" 1","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":36,"total_tokens":75}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":"/","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":37,"total_tokens":76}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":"4","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":38,"total_tokens":77}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" cup","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":39,"total_tokens":78}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" of","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":40,"total_tokens":79}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" melted","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":41,"total_tokens":80}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" butter","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":42,"total_tokens":81}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" and","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":43,"total_tokens":82}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" 1","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":44,"total_tokens":83}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":"/","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":45,"total_tokens":84}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":"4","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":46,"total_tokens":85}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" cup","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":47,"total_tokens":86}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" of","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":48,"total_tokens":87}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" milk","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":49,"total_tokens":88}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":",","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":50,"total_tokens":89}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" and","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":51,"total_tokens":90}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" then","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":52,"total_tokens":91}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" stir","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":53,"total_tokens":92}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" in","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":54,"total_tokens":93}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" 1","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":55,"total_tokens":94}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":"/","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":56,"total_tokens":95}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":"2","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":57,"total_tokens":96}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" cup","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":58,"total_tokens":97}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" of","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":59,"total_tokens":98}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" chocolate","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":60,"total_tokens":99}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" chips","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":61,"total_tokens":100}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" and","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":62,"total_tokens":101}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" 1","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":63,"total_tokens":102}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":"/","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":64,"total_tokens":103}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":"2","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":65,"total_tokens":104}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" cup","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":66,"total_tokens":105}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" of","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":67,"total_tokens":106}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" nuts","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":68,"total_tokens":107}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":".","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":69,"total_tokens":108}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" Drop","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":70,"total_tokens":109}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" the","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":71,"total_tokens":110}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" batter","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":72,"total_tokens":111}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" by","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":73,"total_tokens":112}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" tablespoon","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":74,"total_tokens":113}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" onto","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":75,"total_tokens":114}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" a","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":76,"total_tokens":115}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" gre","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":77,"total_tokens":116}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":"ased","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":78,"total_tokens":117}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" baking","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":79,"total_tokens":118}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" sheet","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":80,"total_tokens":119}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":",","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":81,"total_tokens":120}}
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  5622    0  5533  100    89   5194     83  0:00:01  0:00:01 --:--:--  5273
100 11907    0 11818  100    89   5726     43  0:00:02  0:00:02 --:--:--  5768
100 18209    0 18120  100    89   5918     29  0:00:03  0:00:03 --:--:--  5946
100 24300    0 24211  100    89   6026     22  0:00:04  0:00:04 --:--:--  6049
data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" and","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":82,"total_tokens":121}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" bake","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":83,"total_tokens":122}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" for","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":84,"total_tokens":123}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" 8","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":85,"total_tokens":124}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" to","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":86,"total_tokens":125}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" 10","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":87,"total_tokens":126}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" minutes","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":88,"total_tokens":127}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" at","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":89,"total_tokens":128}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" 350","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":90,"total_tokens":129}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" degrees","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":91,"total_tokens":130}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":" F","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":92,"total_tokens":131}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":"ahren","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":93,"total_tokens":132}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":"heit","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":94,"total_tokens":133}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":".","index":0,"logprobs":null,"finish_reason":null}],"usage":{"prompt_tokens":39,"completion_tokens":95,"total_tokens":134}}

data: {"id":"74b9c840-934a-490f-a542-4191bff313da","object":"text_completion","model":"mpt-30b-instruct","choices":[{"text":"","index":0,"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":39,"completion_tokens":96,"total_tokens":135}}

data: [DONE]

Conclusion#

You are now ready to integrate streaming outputs into your next project with the Databricks Foundation Model API!

See the Databricks Foundation Model APIs Documentation for more detail.