Skip to content

Commit

Permalink
variable for slackbot model
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz committed Sep 13, 2024
1 parent d06031b commit 0af998b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cookbook/slackbot/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import re
import warnings
from contextlib import contextmanager
from typing import cast

import marvin
import uvicorn
Expand Down Expand Up @@ -37,7 +38,7 @@
@contextmanager
def engage_marvin_bot(instructions: str):
with Assistant(
model="gpt-4o",
model=cast(str, Variable.get("marvin_bot_model", "gpt-4o")),
name="Marvin (from Hitchhiker's Guide to the Galaxy)",
tools=[
search_prefect_2x_docs,
Expand Down

0 comments on commit 0af998b

Please sign in to comment.