File size: 1,422 Bytes
02b4c7b
 
 
 
 
d7cc957
02b4c7b
 
 
 
 
 
d7cc957
02b4c7b
d7cc957
 
 
0bc8a9d
 
 
1d4b460
 
0bc8a9d
 
 
 
 
 
 
 
 
 
f99e419
 
0bc8a9d
 
d7cc957
 
 
 
 
2d75f71
 
 
d7cc957
 
02b4c7b
 
 
 
059a044
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
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>gorilla-test2</title>
    <link rel="stylesheet" href="style.css" />
    <script type="module" src="script.js"></script>
  </head>
  <body>
    <main>
      <section id="text-gen">
        <h1>gorilla-test2</h1>
        <form class="text-gen-form">
Prompt:<br/>
<textarea
	id="text-gen-input"
	type="text">

{
  "query": "Call me an Uber ride type \"Plus\" in Berkeley at zipcode 94704 in 10 minutes",
  "functions": [
    {
        "name": "Uber Carpool",
        "api_name": "uber.ride",
        "description": "Find suitable ride for customers given the location, type of ride, and the amount of time the customer is willing to wait as parameters",
        "parameters":  [
            {"name": "loc", "description": "Location of the starting place of the Uber ride"},
            {"name": "type", "enum": ["plus", "comfort", "black"], "description": "Types of Uber ride user is ordering"},
            {"name": "time", "description": "The amount of time in minutes the customer is willing to wait"}
        ]
    }
  ]
}

</textarea>
	<br/>
<button id="text-gen-submit">Submit</button>

<p/>
Result:<br/>
          <p>
            <pre class="text-gen-output">
            </pre>
					</p>
					
        </form>
      </section>
    </main>
  </body>
</html>