You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Generate a chat completion from a list of messages.
590
+
591
+
Args:
592
+
messages: A list of messages to generate a response for.
593
+
temperature: The temperature to use for sampling.
594
+
top_p: The top-p value to use for sampling.
595
+
top_k: The top-k value to use for sampling.
596
+
stream: Whether to stream the results.
597
+
stop: A list of strings to stop generation when encountered.
598
+
max_tokens: The maximum number of tokens to generate.
599
+
repeat_penalty: The penalty to apply to repeated tokens.
600
+
601
+
Returns:
602
+
Generated chat completion or a stream of chat completion chunks.
603
+
"""
589
604
instructions="""Complete the following chat conversation between the user and the assistant. System messages should be strictly followed as additional instructions."""
0 commit comments