Compare commits

..

No commits in common. "0053d95c4dfc1c5e52be6f4e02b0d3d5813f05b9" and "7186c4ca32bb2df147ed3862e9602d16dd2448b9" have entirely different histories.

2 changed files with 6 additions and 3 deletions

View File

@ -34,6 +34,9 @@ class Completion:
"model": self.__model, "model": self.__model,
"messages": self.__messages, "messages": self.__messages,
"max_completion_tokens": 2000, "max_completion_tokens": 2000,
"temperature": 0.7,
"presence_penalty": 0.5,
"frequency_penalty": 0.5,
"tools": TOOLS, "tools": TOOLS,
"tool_choice": "auto", "tool_choice": "auto",
} }

View File

@ -23,6 +23,7 @@ CALLABLE_FUNCTIONS = {
DEFAULT_MODEL = "gpt-5-mini-2025-08-07" DEFAULT_MODEL = "gpt-5-mini-2025-08-07"
DEFAULT_MAX_COMPLETION_TOKENS = 2000 DEFAULT_MAX_COMPLETION_TOKENS = 2000
DEFAULT_TEMPERATURE = 0.7
class ReginaldCog(PermissionsMixin, BlacklistMixin, MemoryMixin, commands.Cog): class ReginaldCog(PermissionsMixin, BlacklistMixin, MemoryMixin, commands.Cog):
@ -222,10 +223,9 @@ class ReginaldCog(PermissionsMixin, BlacklistMixin, MemoryMixin, commands.Cog):
completion_args = { completion_args = {
"model": model, "model": model,
"messages": messages, "messages": messages,
# Keep modern token cap field and rely on model defaults for sampling controls. # `max_completion_tokens` is the recommended limit field for modern/reasoning models.
# GPT-5 family compatibility notes: temperature/top_p/logprobs are not universally
# accepted across snapshots/reasoning settings.
"max_completion_tokens": DEFAULT_MAX_COMPLETION_TOKENS, "max_completion_tokens": DEFAULT_MAX_COMPLETION_TOKENS,
"temperature": DEFAULT_TEMPERATURE,
"tools": TOOLS, "tools": TOOLS,
"tool_choice": "auto", "tool_choice": "auto",
} }