Skip to content

Commit 1e20a69

Browse files
committed
roll ostensibly works
1 parent 3f3df11 commit 1e20a69

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

npcsh/llm_funcs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@
5353
from npcsh.image_gen import (
5454
generate_image_litellm,
5555
)
56+
from npcsh.video_gen import (
57+
generate_video_diffusers,
58+
)
5659

5760
from npcsh.embeddings import (
5861
get_ollama_embeddings,
@@ -293,7 +296,6 @@ def generate_video(
293296
model,
294297
npc=npc,
295298
device=device,
296-
model=model,
297299
)
298300
if provider == "diffusers":
299301
return {"output": "output path at " + output_path, "messages": messages}

npcsh/shell_helpers.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,6 @@
7676
"Could not load the sentence-transformers package. If you want to use it or other local AI features, please run `pip install npcsh[local]` ."
7777
)
7878

79-
try:
80-
from npcsh.video_gen import generate_video_diffusers
81-
except:
82-
print(
83-
"Could not load the video generation package. If you want to use it or other local AI features, please run `pip install npcsh[local]` ."
84-
)
85-
8679
from npcsh.load_data import (
8780
load_pdf,
8881
load_csv,
@@ -103,6 +96,8 @@
10396
NPCSH_VISION_PROVIDER,
10497
NPCSH_IMAGE_GEN_MODEL,
10598
NPCSH_IMAGE_GEN_PROVIDER,
99+
NPCSH_VIDEO_GEN_MODEL,
100+
NPCSH_VIDEO_GEN_PROVIDER,
106101
)
107102
from npcsh.command_history import (
108103
CommandHistory,
@@ -2059,11 +2054,10 @@ def execute_slash_command(
20592054

20602055
output = generate_video(
20612056
command,
2057+
model=NPCSH_VIDEO_GEN_MODEL,
2058+
provider=NPCSH_VIDEO_GEN_PROVIDER,
20622059
npc=npc,
20632060
messages=messages,
2064-
model=model,
2065-
provider=provider,
2066-
stream=stream,
20672061
)
20682062
messages = output["messages"]
20692063
output = output["output"]

0 commit comments

Comments
 (0)