feat: Refactor setType method to use slug value for type
This commit is contained in:
@@ -257,7 +257,6 @@ class Select extends Component
|
||||
public function setType(string $type)
|
||||
{
|
||||
$type = str($type)->lower()->slug()->value();
|
||||
ray('type', $type);
|
||||
if ($this->loading) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -3,43 +3,32 @@
|
||||
# tags: ollama,ai,models,deployment,open-web-ui,integration
|
||||
# logo: svgs/ollama.svg
|
||||
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
ollama-api:
|
||||
container_name: ollama
|
||||
image: "ollama/ollama:latest"
|
||||
volumes:
|
||||
- "ollama:/root/.ollama"
|
||||
ports:
|
||||
- 11434:11434
|
||||
tty: true
|
||||
restart: unless-stopped
|
||||
pull_policy: always
|
||||
healthcheck:
|
||||
test: ["CMD", "ollama", "list"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
interval: 5s
|
||||
timeout: 30s
|
||||
retries: 10
|
||||
|
||||
open-webui:
|
||||
container_name: open-webui
|
||||
image: "ghcr.io/open-webui/open-webui:main"
|
||||
volumes:
|
||||
- "open-webui:/app/backend/data"
|
||||
depends_on:
|
||||
- ollama-api
|
||||
environment:
|
||||
- "OLLAMA_API_BASE_URL=http://127.0.0.1:11434"
|
||||
- SERVICE_FQDN_OLLAMA_8080
|
||||
restart: unless-stopped
|
||||
- OLLAMA_BASE_URL=http://ollama-api:11434
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- curl
|
||||
- "-f"
|
||||
- "http://127.0.0.1:8080"
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
volumes:
|
||||
ollama: {}
|
||||
interval: 5s
|
||||
timeout: 30s
|
||||
retries: 10
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user