update_token_usage#

langchain_community.llms.openai.update_token_usage(keys: Set[str], response: Dict[str, Any], token_usage: Dict[str, Any]) None[source]#

Update token usage.

Parameters:
  • keys (Set[str])

  • response (Dict[str, Any])

  • token_usage (Dict[str, Any])

Return type:

None