Skip to content

Commit

Permalink
Fix link in docs; don't include seed in OpenAI request if it isn't ne…
Browse files Browse the repository at this point in the history
…eded
  • Loading branch information
cpsievert committed Dec 19, 2024
1 parent e2a1a15 commit f5a300f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion chatlas/_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,12 @@ def _chat_perform_args(
"stream": stream,
"messages": self._as_message_param(turns),
"model": self._model,
"seed": self._seed,
**(kwargs or {}),
}

if self._seed is not None:
kwargs_full["seed"] = self._seed

if tool_schemas:
kwargs_full["tools"] = tool_schemas

Expand Down
2 changes: 1 addition & 1 deletion docs/get-started.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Learn more in the article on [structured data extraction](structured-data.qmd).

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

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

* 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.

Expand Down

0 comments on commit f5a300f

Please sign in to comment.