Skip to content

Commit

Permalink
Use llm-mistral instead
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jan 26, 2024
1 parent 75db4a5 commit 8e60f77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ jobs:
ruff .
- name: Run test-llm-load-plugins.sh
run: |
llm install llm-cluster llm-sentence-transformers
llm install llm-cluster llm-mistral
./tests/test-llm-load-plugins.sh
12 changes: 6 additions & 6 deletions tests/test-llm-load-plugins.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#!/bin/bash
# This should only run in environemnts where both
# llm-cluster and llm-sentence-transformers are installed
# This should only run in environments where both
# llm-cluster and llm-mistral are installed

PLUGINS=$(llm plugins)
echo "$PLUGINS" | jq 'any(.[]; .name == "llm-sentence-transformers")' | \
echo "$PLUGINS" | jq 'any(.[]; .name == "llm-mistral")' | \
grep -q true || ( \
echo "Test failed: llm-sentence-transformers not found" && \
echo "Test failed: llm-mistral not found" && \
exit 1 \
)
# With the LLM_LOAD_PLUGINS we should not see that
PLUGINS2=$(LLM_LOAD_PLUGINS=llm-cluster llm plugins)
echo "$PLUGINS2" | jq 'any(.[]; .name == "llm-sentence-transformers")' | \
echo "$PLUGINS2" | jq 'any(.[]; .name == "llm-mistral")' | \
grep -q false || ( \
echo "Test failed: llm-sentence-transformers should not have been loaded" && \
echo "Test failed: llm-mistral should not have been loaded" && \
exit 1 \
)
echo "$PLUGINS2" | jq 'any(.[]; .name == "llm-cluster")' | \
Expand Down

0 comments on commit 8e60f77

Please sign in to comment.