Compare commits
No commits in common. "0053d95c4dfc1c5e52be6f4e02b0d3d5813f05b9" and "7186c4ca32bb2df147ed3862e9602d16dd2448b9" have entirely different histories.
0053d95c4d
...
7186c4ca32
@ -34,6 +34,9 @@ class Completion:
|
||||
"model": self.__model,
|
||||
"messages": self.__messages,
|
||||
"max_completion_tokens": 2000,
|
||||
"temperature": 0.7,
|
||||
"presence_penalty": 0.5,
|
||||
"frequency_penalty": 0.5,
|
||||
"tools": TOOLS,
|
||||
"tool_choice": "auto",
|
||||
}
|
||||
|
||||
@ -23,6 +23,7 @@ CALLABLE_FUNCTIONS = {
|
||||
|
||||
DEFAULT_MODEL = "gpt-5-mini-2025-08-07"
|
||||
DEFAULT_MAX_COMPLETION_TOKENS = 2000
|
||||
DEFAULT_TEMPERATURE = 0.7
|
||||
|
||||
|
||||
class ReginaldCog(PermissionsMixin, BlacklistMixin, MemoryMixin, commands.Cog):
|
||||
@ -222,10 +223,9 @@ class ReginaldCog(PermissionsMixin, BlacklistMixin, MemoryMixin, commands.Cog):
|
||||
completion_args = {
|
||||
"model": model,
|
||||
"messages": messages,
|
||||
# Keep modern token cap field and rely on model defaults for sampling controls.
|
||||
# GPT-5 family compatibility notes: temperature/top_p/logprobs are not universally
|
||||
# accepted across snapshots/reasoning settings.
|
||||
# `max_completion_tokens` is the recommended limit field for modern/reasoning models.
|
||||
"max_completion_tokens": DEFAULT_MAX_COMPLETION_TOKENS,
|
||||
"temperature": DEFAULT_TEMPERATURE,
|
||||
"tools": TOOLS,
|
||||
"tool_choice": "auto",
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user