Spaces:
Sleeping
Sleeping
Commit History
-
fix: make workdir writable for config/cookie generation at runtime
a7fbd75 -
Configure for Hugging Face Space (Docker): port 7860, non-root user, secret-driven config via run.py
fd2eea3
-
feat: full Google Native API support for Gemini CLI compatibility
LiangLliuAdd complete support for Google's generateContent/streamGenerateContent endpoints, enabling seamless integration with Gemini CLI and the @google/genai SDK. Key changes: 1. Real streaming (server.py) - Stream via generate_stream() with per-delta SSE chunks - Empty delta filtering (SDK rejects part.text === "") - Separate final chunk with finishReason: "STOP" + usageMetadata - Tool requests fall back to non-streaming to avoid truncated blocks 2. Function calling via prompt engineering (tools.py) - build_tool_prompt(): natural language tool instructions that avoid Gemini Web's prompt-injection detection - google_contents_to_prompt(): converts systemInstruction, tools, functionCall/functionResponse parts into prompt string + images - parse_google_function_calls(): extracts function calls from model output (3 formats: backtick blocks, bare blocks, raw JSON) 3. SDK protocol compliance - SSE format matches SDK regex /^\s*data: (.*)(?:\n\n)/ - func…3f5152e
-
feat(server): 添加 API 密钥认证和 Docker 部署支持
HouYunFei +1: CodexCo-Authored-By: Codex <noreply@openai.com>f39fd46