Use Anthropic messages API (#304)
This commit is contained in:
1 parent
08df63a6f8
commit
e57f079275
6 files changed
+25
-19
No files matched your search
@@ -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]
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user