File size: 2,817 Bytes
e09244d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
    "model": "gpt-4o",
    "messages": [
        {
            "role": "system",
            "content": "You are ChatGPT, a large language model trained by OpenAI. Respond conversationally in English. Use simple characters to represent mathematical symbols. Do not use LaTeX commands. Knowledge cutoff: 2023-12. Current date: [ 2024-07-09 ]"
        },
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "搜索今天的新闻"
                }
            ]
        },
        {
            "role": "function",
            "name": "get_search_results",
            "content": "latest news today"
        }
    ],
    "max_tokens": 4096,
    "stream": true,
    "temperature": 0.5,
    "top_p": 1.0,
    "presence_penalty": 0.0,
    "frequency_penalty": 0.0,
    "n": 1,
    "user": "function",
    "tools": [
        {
            "type": "function",
            "function": {
                "name": "get_search_results",
                "description": "Search Google to enhance knowledge.",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "prompt": {
                            "type": "string",
                            "description": "The prompt to search."
                        }
                    },
                    "required": [
                        "prompt"
                    ]
                }
            }
        },
        {
            "type": "function",
            "function": {
                "name": "get_url_content",
                "description": "Get the webpage content of a URL",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "url": {
                            "type": "string",
                            "description": "the URL to request"
                        }
                    },
                    "required": [
                        "url"
                    ]
                }
            }
        },
        {
            "type": "function",
            "function": {
                "name": "download_read_arxiv_pdf",
                "description": "Get the content of the paper corresponding to the arXiv ID",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "prompt": {
                            "type": "string",
                            "description": "the arXiv ID of the paper"
                        }
                    },
                    "required": [
                        "prompt"
                    ]
                }
            }
        }
    ],
    "tool_choice": "auto"
}