feat: Refactor setType method to use slug value for type

This commit is contained in:
Andras Bacsai
2024-10-07 12:12:05 +02:00
parent a725a6eaf2
commit a0532afb24
3 changed files with 10 additions and 22 deletions

View File

@@ -257,7 +257,6 @@ class Select extends Component
public function setType(string $type) public function setType(string $type)
{ {
$type = str($type)->lower()->slug()->value(); $type = str($type)->lower()->slug()->value();
ray('type', $type);
if ($this->loading) { if ($this->loading) {
return; return;
} }

View File

@@ -3,43 +3,32 @@
# tags: ollama,ai,models,deployment,open-web-ui,integration # tags: ollama,ai,models,deployment,open-web-ui,integration
# logo: svgs/ollama.svg # logo: svgs/ollama.svg
version: "3.9"
services: services:
ollama-api: ollama-api:
container_name: ollama
image: "ollama/ollama:latest" image: "ollama/ollama:latest"
volumes: volumes:
- "ollama:/root/.ollama" - "ollama:/root/.ollama"
ports:
- 11434:11434
tty: true
restart: unless-stopped
pull_policy: always
healthcheck: healthcheck:
test: ["CMD", "ollama", "list"] test: ["CMD", "ollama", "list"]
interval: 30s interval: 5s
timeout: 10s timeout: 30s
retries: 3 retries: 10
open-webui: open-webui:
container_name: open-webui
image: "ghcr.io/open-webui/open-webui:main" image: "ghcr.io/open-webui/open-webui:main"
volumes:
- "open-webui:/app/backend/data"
depends_on: depends_on:
- ollama-api - ollama-api
environment: environment:
- "OLLAMA_API_BASE_URL=http://127.0.0.1:11434"
- SERVICE_FQDN_OLLAMA_8080 - SERVICE_FQDN_OLLAMA_8080
restart: unless-stopped - OLLAMA_BASE_URL=http://ollama-api:11434
healthcheck: healthcheck:
test: test:
- CMD - CMD
- curl - curl
- "-f" - "-f"
- "http://127.0.0.1:8080" - "http://127.0.0.1:8080"
interval: 30s interval: 5s
timeout: 10s timeout: 30s
retries: 3 retries: 10
volumes:
ollama: {}

File diff suppressed because one or more lines are too long