mirror of
https://github.com/Ed1s0nZ/PrivHunterAI.git
synced 2025-09-17 20:41:37 +00:00
Update config.go
This commit is contained in:
parent
32f2449452
commit
f27bc60ef3
@ -3,14 +3,13 @@ package config
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
)
|
||||
|
||||
// 配置结构
|
||||
type Config struct {
|
||||
AI string `json:"AI"`
|
||||
Cookie2 string `json:"cookie2"`
|
||||
Headers2 map[string]string `json:"headers2"`
|
||||
Suffixes []string `json:"suffixes"`
|
||||
AllowedRespHeaders []string `json:"allowedRespHeaders"`
|
||||
APIKeys struct {
|
||||
@ -63,7 +62,7 @@ var Prompt = `{"role": "你是一个AI,负责通过比较两个HTTP响应数
|
||||
|
||||
// 加载配置文件
|
||||
func loadConfig(filePath string) error {
|
||||
data, err := ioutil.ReadFile(filePath)
|
||||
data, err := os.ReadFile(filePath)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user