Skip to content

Commit

Permalink
added docstring.
Browse files Browse the repository at this point in the history
litting
  • Loading branch information
luiz0992 committed Oct 15, 2024
1 parent 6e04618 commit 450a3b3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ def create_assistant(
model: Assistant model to use.
client: OpenAI or AzureOpenAI client.
Will create default OpenAI client (Assistant v2) if not specified.
model_kwargs: Additional model arguments. Only available for temperature
and top_p parameters.
extra_body: Additional body parameters to be passed to the assistant.
Returns:
OpenAIAssistantRunnable configured to run using the created assistant.
Expand All @@ -259,7 +262,7 @@ def create_assistant(
tools=[_get_assistants_tool(tool) for tool in tools], # type: ignore
tool_resources=tool_resources,
model=model,
extra_body = extra_body,
extra_body=extra_body,
**model_kwargs,
)
return cls(assistant_id=assistant.id, client=client, **kwargs)
Expand Down

0 comments on commit 450a3b3

Please sign in to comment.