Skip to content

Commit f5a300f

Browse files
committed
Fix link in docs; don't include seed in OpenAI request if it isn't needed
1 parent e2a1a15 commit f5a300f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

chatlas/_openai.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,12 @@ def _chat_perform_args(
294294
"stream": stream,
295295
"messages": self._as_message_param(turns),
296296
"model": self._model,
297-
"seed": self._seed,
298297
**(kwargs or {}),
299298
}
300299

300+
if self._seed is not None:
301+
kwargs_full["seed"] = self._seed
302+
301303
if tool_schemas:
302304
kwargs_full["tools"] = tool_schemas
303305

docs/get-started.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Learn more in the article on [structured data extraction](structured-data.qmd).
8282

8383
LLMs can also be useful to solve general programming problems. For example:
8484

85-
* You can use LLMs to explain code, or even ask them to [generate a diagram](https://bsky.app/profile/daviddiviny.bsky.social/post/3lb6kjaen4c2u).
85+
* You can use LLMs to explain code, or even ask them to [generate a diagram](https://bsky.app/profile/daviddiviny.com/post/3lb6kjaen4c2u).
8686

8787
* You can ask an LLM to analyse your code for potential code smells or security issues. You can do this a function at a time, or explore including the entire source code for your package or script in the prompt.
8888

0 commit comments

Comments
 (0)