Spaces:
Paused
Paused
Ahmed commited on
Commit ·
2a1de6b
1
Parent(s): b8d8abe
fix: add Pollinations config to Dockerfile for HF deployment
Browse files- Dockerfile +29 -1
- push-hf.ps1 +1 -4
Dockerfile
CHANGED
|
@@ -47,7 +47,35 @@ RUN echo 'host: "0.0.0.0"' > /CLIProxyAPI/config.yaml && \
|
|
| 47 |
echo ' switch-preview-model: true' >> /CLIProxyAPI/config.yaml && \
|
| 48 |
echo 'routing:' >> /CLIProxyAPI/config.yaml && \
|
| 49 |
echo ' strategy: "round-robin"' >> /CLIProxyAPI/config.yaml && \
|
| 50 |
-
echo 'ws-auth: false' >> /CLIProxyAPI/config.yaml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
WORKDIR /CLIProxyAPI
|
| 53 |
|
|
|
|
| 47 |
echo ' switch-preview-model: true' >> /CLIProxyAPI/config.yaml && \
|
| 48 |
echo 'routing:' >> /CLIProxyAPI/config.yaml && \
|
| 49 |
echo ' strategy: "round-robin"' >> /CLIProxyAPI/config.yaml && \
|
| 50 |
+
echo 'ws-auth: false' >> /CLIProxyAPI/config.yaml && \
|
| 51 |
+
echo 'openai-compatibility:' >> /CLIProxyAPI/config.yaml && \
|
| 52 |
+
echo ' - name: "pollinations"' >> /CLIProxyAPI/config.yaml && \
|
| 53 |
+
echo ' base-url: "https://gen.pollinations.ai/v1"' >> /CLIProxyAPI/config.yaml && \
|
| 54 |
+
echo ' api-key-entries:' >> /CLIProxyAPI/config.yaml && \
|
| 55 |
+
echo ' - api-key: "sk_lKZK8QOvQkoBBP7pbCZlY6WF2mnnaCnx"' >> /CLIProxyAPI/config.yaml && \
|
| 56 |
+
echo ' models:' >> /CLIProxyAPI/config.yaml && \
|
| 57 |
+
echo ' - name: "openai"' >> /CLIProxyAPI/config.yaml && \
|
| 58 |
+
echo ' - name: "openai-fast"' >> /CLIProxyAPI/config.yaml && \
|
| 59 |
+
echo ' - name: "openai-large"' >> /CLIProxyAPI/config.yaml && \
|
| 60 |
+
echo ' - name: "qwen-coder"' >> /CLIProxyAPI/config.yaml && \
|
| 61 |
+
echo ' - name: "mistral"' >> /CLIProxyAPI/config.yaml && \
|
| 62 |
+
echo ' - name: "openai-audio"' >> /CLIProxyAPI/config.yaml && \
|
| 63 |
+
echo ' - name: "gemini-fast"' >> /CLIProxyAPI/config.yaml && \
|
| 64 |
+
echo ' - name: "deepseek"' >> /CLIProxyAPI/config.yaml && \
|
| 65 |
+
echo ' - name: "gemini-search"' >> /CLIProxyAPI/config.yaml && \
|
| 66 |
+
echo ' - name: "claude-fast"' >> /CLIProxyAPI/config.yaml && \
|
| 67 |
+
echo ' - name: "perplexity-fast"' >> /CLIProxyAPI/config.yaml && \
|
| 68 |
+
echo ' - name: "perplexity-reasoning"' >> /CLIProxyAPI/config.yaml && \
|
| 69 |
+
echo ' - name: "kimi"' >> /CLIProxyAPI/config.yaml && \
|
| 70 |
+
echo ' - name: "nova-fast"' >> /CLIProxyAPI/config.yaml && \
|
| 71 |
+
echo ' - name: "glm"' >> /CLIProxyAPI/config.yaml && \
|
| 72 |
+
echo ' - name: "minimax"' >> /CLIProxyAPI/config.yaml && \
|
| 73 |
+
echo ' - name: "qwen-character"' >> /CLIProxyAPI/config.yaml && \
|
| 74 |
+
echo ' - name: "gemini"' >> /CLIProxyAPI/config.yaml && \
|
| 75 |
+
echo ' - name: "grok"' >> /CLIProxyAPI/config.yaml && \
|
| 76 |
+
echo ' - name: "claude"' >> /CLIProxyAPI/config.yaml && \
|
| 77 |
+
echo ' - name: "claude-large"' >> /CLIProxyAPI/config.yaml && \
|
| 78 |
+
echo ' - name: "gemini-large"' >> /CLIProxyAPI/config.yaml
|
| 79 |
|
| 80 |
WORKDIR /CLIProxyAPI
|
| 81 |
|
push-hf.ps1
CHANGED
|
@@ -1,6 +1,3 @@
|
|
| 1 |
-
git lfs install
|
| 2 |
-
git lfs track "*.exe" "*.exe~" "cliproxy-linux"
|
| 3 |
-
git add .gitattributes
|
| 4 |
git add -A
|
| 5 |
-
git commit -m "
|
| 6 |
git push hf main --force
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
git add -A
|
| 2 |
+
git commit -m "fix: add Pollinations config to Dockerfile for HF deployment"
|
| 3 |
git push hf main --force
|