fed8b2eed7
Backend release / release (push) Waiting to run
Bandit Security Scan / bandit_scan (push) Waiting to run
Build and push multi-arch DocsGPT Docker image / build (linux/amd64, ubuntu-latest, amd64) (push) Waiting to run
Build and push multi-arch DocsGPT Docker image / build (linux/arm64, ubuntu-24.04-arm, arm64) (push) Waiting to run
Build and push multi-arch DocsGPT Docker image / manifest (push) Blocked by required conditions
Build and push DocsGPT FE Docker image for development / build (linux/amd64, ubuntu-latest, amd64) (push) Waiting to run
Build and push DocsGPT FE Docker image for development / build (linux/arm64, ubuntu-24.04-arm, arm64) (push) Waiting to run
Build and push DocsGPT FE Docker image for development / manifest (push) Blocked by required conditions
Python linting / ruff (push) Waiting to run
Run python tests with pytest / Run tests and count coverage (3.12) (push) Waiting to run
React Widget Build / build (push) Waiting to run
20 lines
487 B
Python
20 lines
487 B
Python
from __future__ import annotations
|
|
|
|
from typing import Optional
|
|
|
|
from application.llm.llama_cpp import LlamaCpp
|
|
from application.llm.providers.base import Provider
|
|
|
|
|
|
class LlamaCppProvider(Provider):
|
|
"""LLMCreator-only plugin: invocable via LLM_PROVIDER but not in the catalog."""
|
|
|
|
name = "llama.cpp"
|
|
llm_class = LlamaCpp
|
|
|
|
def get_api_key(self, settings) -> Optional[str]:
|
|
return settings.API_KEY
|
|
|
|
def is_enabled(self, settings) -> bool:
|
|
return False
|