Setting the response model so the cost can be calculated
This commit is contained in:
parent
eb71611a97
commit
0e045e0bb7
@ -106,5 +106,8 @@ class LemonadeChatConfig(OpenAILikeChatConfig):
|
||||
api_key=api_key,
|
||||
)
|
||||
|
||||
# Storing lemonade in the model response for easier cost calculation later
|
||||
setattr(model_response, "model", "lemonade/" + model)
|
||||
|
||||
return model_response
|
||||
|
||||
Loading…
Reference in New Issue
Block a user