diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index eed3675..5f030de 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -29,19 +29,29 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.12" + + - name: Run ollama server + env: + GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} + run: uv run mknodes build + - name: Install uv uses: yezz123/setup-uv@v4 + - name: Install dependencies run: | uv sync --all-extras + - name: Build env: GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} run: uv run mknodes build + - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: diff --git a/src/jinjarope/resources/llm_filters.toml b/src/jinjarope/resources/llm_filters.toml index 80cc6f2..8585539 100644 --- a/src/jinjarope/resources/llm_filters.toml +++ b/src/jinjarope/resources/llm_filters.toml @@ -7,17 +7,17 @@ required_packages = ["litellm"] [filters.llm_complete.examples.basic] template = """ -{{ "Describe how to install a package from PyPi" | llm_complete(model="gemini/gemini-1.5-flash") }} +{{ "Describe how to install a package from PyPi" | llm_complete(model="ollama/smollm2") }} """ [filters.llm_complete.examples.with_system_prompt] template = """ -{{ "What are the benefits of Python?" | llm_complete(model="gemini/gemini-1.5-flash", system_prompt="You are a helpful programming assistant.") }} +{{ "What are the benefits of Python?" | llm_complete(model="ollama/smollm2", system_prompt="You are a helpful programming assistant.") }} """ [filters.llm_complete.examples.with_context] template = """ -{{ "Explain its importance." | llm_complete(model="gemini/gemini-1.5-flash", context="We were discussing Python's role in data science.") }} +{{ "Explain its importance." | llm_complete(model="ollama/smollm2", context="We were discussing Python's role in data science.") }} """ [filters.llm_generate_image]