返回提交历史
Modified
g4f-go/runtime.go
+1
-2
XFEstudio/gpt4free
Update runtime.go
d2e6faae
代码差异
1 个文件
+1
-2
@@ -160,8 +160,7 @@ func installG4F(binDir, exe string, start time.Time) error {
160
160
fmt.Printf("Installing gpt4free into the embedded Python runtime...\n")
161
161
code, err := runPython(noSignalCtx(), exe, []string{
162
162
"-m", "pip", "install",
163
"--no-input",
164
"--no-cache-dir", "g4f[slim]",
163
"--no-input", "g4f[slim]",
165
164
}, pipEnv(binDir)...)
166
165
if err != nil || code != 0 {
167
166
return fmt.Errorf("pip install g4f failed (exit %d): %w", code, err)