-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchatbots.go
More file actions
36 lines (29 loc) · 1.2 KB
/
chatbots.go
File metadata and controls
36 lines (29 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package discard
func (c *Client) LlamaBot(text string) (interface{}, error) {
params := map[string]interface{}{"text": text}
return c.makeRequest("GET", "/api/bot/llama", params, nil)
}
func (c *Client) QwenBot(text string) (interface{}, error) {
params := map[string]interface{}{"text": text}
return c.makeRequest("GET", "/api/bot/qwen", params, nil)
}
func (c *Client) BaiduBot(text string) (interface{}, error) {
params := map[string]interface{}{"text": text}
return c.makeRequest("GET", "/api/bot/baidu", params, nil)
}
func (c *Client) GemmaBot(text string) (interface{}, error) {
params := map[string]interface{}{"text": text}
return c.makeRequest("GET", "/api/bot/gemma", params, nil)
}
func (c *Client) SparkBot(text string) (interface{}, error) {
params := map[string]interface{}{"text": text}
return c.makeRequest("GET", "/api/chat/spark", params, nil)
}
func (c *Client) QuarkBot(text string) (interface{}, error) {
params := map[string]interface{}{"text": text}
return c.makeRequest("GET", "/api/chat/quark", params, nil)
}
func (c *Client) GLMBot(text string) (interface{}, error) {
params := map[string]interface{}{"text": text}
return c.makeRequest("GET", "/api/chat/glm", params, nil)
}