mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-04 03:21:04 +08:00
* fix(trader): get peakPnlPct using posKey * fix(docs): keep readme at the same page * improve(interface): replace with interface * refactor mcp --------- Co-authored-by: zbhan <zbhan@freewheel.tv>
13 lines
323 B
Go
13 lines
323 B
Go
package mcp
|
|
|
|
import "net/http"
|
|
|
|
// AIClient AI客户端接口
|
|
type AIClient interface {
|
|
SetAPIKey(apiKey string, customURL string, customModel string)
|
|
// CallWithMessages 使用 system + user prompt 调用AI API
|
|
CallWithMessages(systemPrompt, userPrompt string) (string, error)
|
|
|
|
setAuthHeader(reqHeaders http.Header)
|
|
}
|