Skip to content

Commit

Permalink
πŸ”– kwargs dict type example
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Feb 12, 2024
1 parent bdab3d8 commit 195a77d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/dict_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
settings.llm = "llamacpp/openchat-3.5-0106:Q3_K_M"


def get_kwargs(user_query: str) -> dict:
class Output(BaseModel):
plot: str
kwargs: dict


def get_kwargs(user_query: str) -> Output:
"""
Translate the user query to a dictionary of kwargs
"""
Expand Down

0 comments on commit 195a77d

Please sign in to comment.