# AI Platform

## knowledge-based platform
1. https://github.com/open-webui/open-webui open-webui 52.7k
```yaml
# docker compose
version: '3.8'
services:
  open-webui:
    image: ghcr.io/open-webui/open-webui:main
    container_name: open-webui
    restart: always
    ports:
      - "3000:8080"
    environment:
      - OLLAMA_BASE_URL=https://example.com
    volumes:
      - open-webui:/app/backend/data
    extra_hosts:
      - "host.docker.internal:host-gateway"
volumes:
  open-webui:
```
2. https://github.com/langgenius/dify dify 56k
```bash

docs: https://docs.dify.ai/zh-hans/getting-started/install-self-hosted/docker-compose

 https://github.com/langgenius/dify/blob/main/docker/docker-compose.yaml
 https://github.com/langgenius/dify/blob/main/docker/.env.example

 
```
3. https://github.com/Mintplex-Labs/anything-llm anything-llm 29.1k
```yaml
version: '3.8'
services:
  anythingllm:
    image: mintplexlabs/anythingllm
    container_name: anythingllm
    ports:
    - "3001:3001"
    cap_add:
      - SYS_ADMIN
    environment:
    # Adjust for your environment
      - STORAGE_DIR=/app/server/storage
      - JWT_SECRET="make this a large list of random numbers and letters 20+"
      - LLM_PROVIDER=ollama
      - OLLAMA_BASE_PATH=http://127.0.0.1:11434
      - OLLAMA_MODEL_PREF=llama2
      - OLLAMA_MODEL_TOKEN_LIMIT=4096
      - EMBEDDING_ENGINE=ollama
      - EMBEDDING_BASE_PATH=http://127.0.0.1:11434
      - EMBEDDING_MODEL_PREF=nomic-embed-text:latest
      - EMBEDDING_MODEL_MAX_CHUNK_LENGTH=8192
      - VECTOR_DB=lancedb
      - WHISPER_PROVIDER=local
      - TTS_PROVIDER=native
      - PASSWORDMINCHAR=8
      # Add any other keys here for services or settings
      # you can find in the docker/.env.example file
    volumes:
      - anythingllm_storage:/app/server/storage
    restart: always

volumes:
  anythingllm_storage:
    driver: local
    driver_opts:
      type: none
      o: bind
      device: /path/on/local/disk
```

4. https://github.com/1Panel-dev/MaxKB maxkb 12.1k
5. https://github.com/infiniflow/ragflow ragflow 26.2k
6. https://github.com/labring/FastGPT fastgpt 19.3k

## AI model server 
1. https://ollama.com/ ollama
2. https://lmstudio.ai/ lmstudio


## AI models
1. qwen2.5
2. deepseek
3. glm4
4. 

```swift
enum APIConfig {
    // 腾讯OCR配置
    static let tencentSecretId = "AKIDwuhKk2EEF9pJdmjgV9ZozzGPL8vgXR9e"
    static let tencentSecretKey = "Kf0Md3Uix2yiMrMk03ucAVdfVAev6DDI"
    static let tencentEndpoint = "ocr.tencentcloudapi.com"
    
    // Google Gemini配置
    GEMINI_API_KEYS="AIzaSyDADTaZvlwl06EN6aQT0u2Vkc3L-61wld0,AIzaSyC6SnEWpc4l0odVFDYR0Z3o9s0sxpV1UgA,AIzaSyBMPhdWHHkXrehfbyyRiAY7vt-CEDQUGvc,AIzaSyAixoRnZz7vMNFoCumPFrtuD1lCeSp6qyQ,AIzaSyDyT4CALjZ4xohsNf4pcoVSXMRQIUCIFQE"
    static let geminiEndpoint = "https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent"
    static let geminiEndpoint = "https://gateway.ai.cloudflare.com/v1/559c3ce143050d42837c6b9db5a468d2/go-og-le/google-ai-studio"
  // e.g.
  curl "https://gateway.ai.cloudflare.com/v1/559c3ce143050d42837c6b9db5a468d2/go-og-le/google-ai-studio/v1beta/models?key=AIzaSyBPMGne7a6mhKcjYlTsjzyGAiTxnaOUHm4"
  
   
}
```

github token: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
deepseek:sk-7d4bc738393e479e8dc918c7d6d81ffa

tavily key: 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

Openrouter:
cf:  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
cherry: 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

siliconflow: sk-atmioarfqvmfygncsxwejomyhhjancavrkbqmduaolieeqlw
1

gemini-zyp:AIzaSyCM4FO3fhp16evimI6ERjWgxZHD3HHgguk