Use Anthropic messages API (#304)

This commit is contained in:
Jani Monoses authored and GitHub committed 2024-03-22 13:23:31 -07:00
1 parent 08df63a6f8
commit e57f079275
6 files changed
+25 -19

No files matched your search

+1 -1
View File
@@ -73,7 +73,7 @@ class SglSamplingParams:
"Regular expression is not supported in the Anthropic backend."
)
return {
"max_tokens_to_sample": self.max_new_tokens,
"max_tokens": self.max_new_tokens,
"stop_sequences": (
self.stop if isinstance(self.stop, (list, tuple)) else [self.stop]
),