wandb/weave

weave monitoring openai package strips away meta data from original openai response

binarycrayon opened this issue · 0 comments

OpenAI API calls generally returns token usage, such as chat completion requests
https://platform.openai.com/docs/api-reference/chat/create

the response from weave.monitoring.openai would strip that information away.

As a API wrapper we expect it to behave exactly like openai client SDK, as we can also keep track of the metadata in the responseto other data sources.

Please make sure the openai wrapper behaviour is consistent with the openai client sdk.