a hot summer night.    Chorus    Sparkling water, sparkling water,    It's the best way to stay hydrated,    It's so crisp and so clean,    It's the perfect way to stay refreshed.    Verse 3    I'm sippin' on sparkling water,    It's so light and so clear,    It's the perfect way to keep me cool    On a hot summer night.    Chorus    Sparkling water, sparkling water,    It's the best way to stay hydrated,    It's so crisp and so clean,    It's the perfect way to stay refreshed.We still have access to the end LLMResult if using generate. However, token_usage is not currently supported for streaming.llm.generate(["Tell me a joke."])    Q: What did the fish say when it hit the wall?    A: Dam!    LLMResult(generations=[[Generation(text='\n\nQ: What did the fish say when it hit the wall?\nA: Dam!', generation_info={'finish_reason': 'stop', 'logprobs': None})]], llm_output={'token_usage': {}, 'model_name': 'text-davinci-003'})PreviousSerializationNextTracking token usageCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.
Some LLMs provide a streaming response. This means that instead of waiting for the entire response to be returned, you can start processing it as soon as it's available. This is useful if you want to display the response to the user as it's being generated, or if you want to process the response as it's being generated.
Some LLMs provide a streaming response. This means that instead of waiting for the entire response to be returned, you can start processing it as soon as it's available. This is useful if you want to display the response to the user as it's being generated, or if you want to process the response as it's being generated. ->: a hot summer night.    Chorus    Sparkling water, sparkling water,    It's the best way to stay hydrated,    It's so crisp and so clean,    It's the perfect way to stay refreshed.    Verse 3    I'm sippin' on sparkling water,    It's so light and so clear,    It's the perfect way to keep me cool    On a hot summer night.    Chorus    Sparkling water, sparkling water,    It's the best way to stay hydrated,    It's so crisp and so clean,    It's the perfect way to stay refreshed.We still have access to the end LLMResult if using generate. However, token_usage is not currently supported for streaming.llm.generate(["Tell me a joke."])    Q: What did the fish say when it hit the wall?    A: Dam!    LLMResult(generations=[[Generation(text='\n\nQ: What did the fish say when it hit the wall?\nA: Dam!', generation_info={'finish_reason': 'stop', 'logprobs': None})]], llm_output={'token_usage': {}, 'model_name': 'text-davinci-003'})PreviousSerializationNextTracking token usageCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.