forked from phoenix/litellm-mirror
(feat) return custom_llm_provider in streaming response
This commit is contained in:
parent
70899521ae
commit
6b2a4714a6
1 changed files with 1 additions and 0 deletions
|
@ -7452,6 +7452,7 @@ class CustomStreamWrapper:
|
|||
|
||||
def chunk_creator(self, chunk):
|
||||
model_response = ModelResponse(stream=True, model=self.model)
|
||||
model_response._hidden_params["custom_llm_provider"] = self.custom_llm_provider
|
||||
model_response.choices = [StreamingChoices()]
|
||||
model_response.choices[0].finish_reason = None
|
||||
response_obj = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue