sohailshk opened a new pull request, #41196:
URL: https://github.com/apache/beam/pull/41196

   Fixes #41194
   
   `message_from_string` and `message_from_conversation` popped `max_tokens` 
from the `inference_args` dict they received. RunInference passes the same dict 
for every batch, so after the first batch `max_tokens` was gone and later 
requests used the default of 1024. Both functions now pop from a copy.
   
   New tests call each function twice with the same dict and check that the 
dict is unchanged and that both requests use the given `max_tokens`. They fail 
on master and pass with the fix (Anthropic client mocked); 
`anthropic_inference_test.py` passes.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to