Skip to content

Commit 2f80d76

Browse files
committed
Formatting
1 parent e14c0a2 commit 2f80d76

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/gptcmd/message.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,14 @@ def render(
283283
def set_api_param(self, key: str, val: Any) -> None:
284284
"Set an OpenAI API parameter to send with future messages"
285285
SPECIAL_OPTS = frozenset(("model", "messages", "stream"))
286-
opts = frozenset(inspect.signature(self._openai.chat.completions.create).parameters.keys()) - SPECIAL_OPTS
286+
opts = (
287+
frozenset(
288+
inspect.signature(
289+
self._openai.chat.completions.create
290+
).parameters.keys()
291+
)
292+
- SPECIAL_OPTS
293+
)
287294
if key not in opts:
288295
raise APIParameterError(f"Invalid API parameter {key}")
289296
self._api_params[key] = val

0 commit comments

Comments
 (0)