Huanzhi Mao
commited on
Commit
•
e6668d6
1
Parent(s):
6569764
switch to use iframe instead
Browse files- app.py +0 -1188
- data.csv +0 -58
- index.html +33 -0
- requirements.txt +0 -3
app.py
DELETED
@@ -1,1188 +0,0 @@
|
|
1 |
-
import gradio as gr
|
2 |
-
import json
|
3 |
-
import webbrowser
|
4 |
-
import os
|
5 |
-
import re
|
6 |
-
import pandas as pd
|
7 |
-
import csv
|
8 |
-
|
9 |
-
# from anthropic import Anthropic
|
10 |
-
from openai import OpenAI
|
11 |
-
from mistralai.client import MistralClient
|
12 |
-
from mistralai.models.chat_completion import ChatMessage
|
13 |
-
import requests
|
14 |
-
|
15 |
-
mongoDBPassword = os.environ.get("MONGODB_PASSWORD")
|
16 |
-
openaiKey = os.environ.get("OPENAI_API_KEY")
|
17 |
-
mistralKey = os.environ.get("MISTRAL_API_KEY")
|
18 |
-
# anthropicKey = os.environ.get("ANTHROPIC_API_KEY")
|
19 |
-
|
20 |
-
EXAMPLES = [
|
21 |
-
{
|
22 |
-
"name": "requests.get",
|
23 |
-
"description": "Sends a GET request to the specified URL.",
|
24 |
-
"parameters": {
|
25 |
-
"type": "dict",
|
26 |
-
"properties": {
|
27 |
-
"url": {
|
28 |
-
"type": "string",
|
29 |
-
"description": "Geocoding API converting a a pair of latitude and longitude coordinates to human readable addresses",
|
30 |
-
"default": "https://geocode.maps.co/reverse",
|
31 |
-
},
|
32 |
-
"headers": {},
|
33 |
-
"timeout": {
|
34 |
-
"type": ["number", "tuple"],
|
35 |
-
"description": "How many seconds to wait for the server to send data before giving up.",
|
36 |
-
"required": False,
|
37 |
-
},
|
38 |
-
"params": {
|
39 |
-
"lat": {
|
40 |
-
"type": "number",
|
41 |
-
"description": "Latitude of the location to reverse geocode.",
|
42 |
-
"required": True,
|
43 |
-
},
|
44 |
-
"lon": {
|
45 |
-
"type": "number",
|
46 |
-
"description": "Longitude of the location to reverse geocode.",
|
47 |
-
"required": True,
|
48 |
-
},
|
49 |
-
"format": {
|
50 |
-
"type": "string",
|
51 |
-
"description": "The desired response format. Options include 'xml', 'json', 'jsonv2', 'geojson', 'geocodejson'. Default is 'json'.",
|
52 |
-
"required": False,
|
53 |
-
},
|
54 |
-
},
|
55 |
-
"allow_redirects": {
|
56 |
-
"type": "boolean",
|
57 |
-
"description": "A Boolean to enable/disable redirection.",
|
58 |
-
"default": True,
|
59 |
-
"required": False,
|
60 |
-
},
|
61 |
-
"auth": {
|
62 |
-
"type": "tuple",
|
63 |
-
"description": "A tuple to enable a certain HTTP authentication.",
|
64 |
-
"default": "None",
|
65 |
-
"required": False,
|
66 |
-
},
|
67 |
-
"cert": {
|
68 |
-
"type": ["string", "tuple"],
|
69 |
-
"description": "A String or Tuple specifying a cert file or key.",
|
70 |
-
"default": "None",
|
71 |
-
"required": False,
|
72 |
-
},
|
73 |
-
"cookies": {
|
74 |
-
"type": "dict",
|
75 |
-
"additionalProperties": {"type": "string"},
|
76 |
-
"description": "Dictionary of cookies to send with the request.",
|
77 |
-
"required": False,
|
78 |
-
},
|
79 |
-
"proxies": {
|
80 |
-
"type": "dict",
|
81 |
-
"additionalProperties": {"type": "string"},
|
82 |
-
"description": "Dictionary of the protocol to the proxy url.",
|
83 |
-
"required": False,
|
84 |
-
},
|
85 |
-
"stream": {
|
86 |
-
"type": "boolean",
|
87 |
-
"description": "A Boolean indication if the response should be immediately downloaded (False) or streamed (True).",
|
88 |
-
"default": False,
|
89 |
-
"required": False,
|
90 |
-
},
|
91 |
-
"verify": {
|
92 |
-
"type": ["boolean", "string"],
|
93 |
-
"description": "A Boolean or a String indication to verify the servers TLS certificate or not.",
|
94 |
-
"default": True,
|
95 |
-
"required": False,
|
96 |
-
},
|
97 |
-
},
|
98 |
-
},
|
99 |
-
},
|
100 |
-
{
|
101 |
-
"name": "requests.get",
|
102 |
-
"description": "Sends a GET request to the specified URL.",
|
103 |
-
"parameters": {
|
104 |
-
"type": "dict",
|
105 |
-
"properties": {
|
106 |
-
"url": {
|
107 |
-
"type": "string",
|
108 |
-
"description": "The Date Nager API provides access holiday information for over 100 countries, including the ability to query for long weekends. It leverages ISO 3166-1 alpha-2 country codes to tailor the search to your specific region of interest. More information can be found in https://date.nager.at/Api",
|
109 |
-
"default": "https://date.nager.at/api/v3/LongWeekend/{year}/{countryCode}",
|
110 |
-
},
|
111 |
-
"headers": {},
|
112 |
-
"timeout": {
|
113 |
-
"type": ["number", "tuple"],
|
114 |
-
"description": "How many seconds to wait for the server to send data before giving up.",
|
115 |
-
"required": False,
|
116 |
-
},
|
117 |
-
"params": {},
|
118 |
-
"auth": {
|
119 |
-
"type": "tuple",
|
120 |
-
"description": "A tuple to enable a certain HTTP authentication.",
|
121 |
-
"default": "None",
|
122 |
-
"required": False,
|
123 |
-
},
|
124 |
-
"cert": {
|
125 |
-
"type": ["string", "tuple"],
|
126 |
-
"description": "A String or Tuple specifying a cert file or key.",
|
127 |
-
"default": "None",
|
128 |
-
"required": False,
|
129 |
-
},
|
130 |
-
"cookies": {
|
131 |
-
"type": "dict",
|
132 |
-
"additionalProperties": {"type": "string"},
|
133 |
-
"description": "Dictionary of cookies to send with the request.",
|
134 |
-
"required": False,
|
135 |
-
},
|
136 |
-
"proxies": {
|
137 |
-
"type": "dict",
|
138 |
-
"additionalProperties": {"type": "string"},
|
139 |
-
"description": "Dictionary of the protocol to the proxy url.",
|
140 |
-
"required": False,
|
141 |
-
},
|
142 |
-
"stream": {
|
143 |
-
"type": "boolean",
|
144 |
-
"description": "A Boolean indication if the response should be immediately downloaded (False) or streamed (True).",
|
145 |
-
"default": False,
|
146 |
-
"required": False,
|
147 |
-
},
|
148 |
-
"verify": {
|
149 |
-
"type": ["boolean", "string"],
|
150 |
-
"description": "A Boolean or a String indication to verify the servers TLS certificate or not.",
|
151 |
-
"default": True,
|
152 |
-
"required": False,
|
153 |
-
},
|
154 |
-
},
|
155 |
-
},
|
156 |
-
},
|
157 |
-
{
|
158 |
-
"name": "requests.get",
|
159 |
-
"description": "Sends a GET request to the specified URL.",
|
160 |
-
"parameters": {
|
161 |
-
"type": "dict",
|
162 |
-
"properties": {
|
163 |
-
"url": {
|
164 |
-
"type": "string",
|
165 |
-
"description": "The Open-Meteo API provides detailed weather forecasts for any location worldwide. It offers forecasts up to 16 days in advance and also provide past data. The API's response gives weather variables on an hourly basis, such as temperature, humidity, precipitation, wind speed and direction, etc. More information can be found in https://open-meteo.com/en/docs/",
|
166 |
-
"default": "https://api.open-meteo.com/v1/forecast",
|
167 |
-
},
|
168 |
-
"headers": {},
|
169 |
-
"timeout": {
|
170 |
-
"type": ["number", "tuple"],
|
171 |
-
"description": "How many seconds to wait for the server to send data before giving up.",
|
172 |
-
"required": False,
|
173 |
-
},
|
174 |
-
"params": {
|
175 |
-
"latitude": {
|
176 |
-
"type": "string",
|
177 |
-
"description": "Geographical WGS84 coordinates of the location. Multiple coordinates can be comma separated. E.g., &latitude=52.52,48.85&longitude=13.41,2.35. To return data for multiple locations the JSON output changes to a list of structures. CSV and XLSX formats add a column location_id. N is positive, S is negative",
|
178 |
-
"required": True,
|
179 |
-
},
|
180 |
-
"longitude": {
|
181 |
-
"type": "string",
|
182 |
-
"description": "Geographical WGS84 coordinates of the location. Multiple coordinates can be comma separated. E is positive, W is negative",
|
183 |
-
"required": True,
|
184 |
-
},
|
185 |
-
"elevation": {
|
186 |
-
"type": "string",
|
187 |
-
"description": "The elevation used for statistical downscaling. Per default, a 90 meter digital elevation model is used. You can manually set the elevation to correctly match mountain peaks. If &elevation=nan is specified, downscaling will be disabled and the API uses the average grid-cell height. For multiple locations, elevation can also be comma separated.",
|
188 |
-
"required": False,
|
189 |
-
},
|
190 |
-
"hourly": {
|
191 |
-
"type": "string",
|
192 |
-
"description": "A list of weather variables which should be returned. Values can be comma separated, or multiple &hourly= parameters in the URL can be used. Support parameters: temperature_2m,relative_humidity_2m,dew_point_2m,apparent_temperature,pressure_msl,cloud_cover,cloud_cover_low,cloud_cover_mid,cloud_cover_high,wind_speed_10m,wind_speed_80m,wind_speed_120m,wind_speed_180m,wind_direction_10m,wind_direction_80m,wind_direction_120m,wind_direction_180m,wind_gusts_10m,shortwave_radiation,direct_radiation,direct_normal_irradiance,diffuse_radiation,global_tilted_irradiance,vapour_pressure_deficit,cape,evapotranspiration,et0_fao_evapotranspiration,precipitation,snowfall,precipitation_probability,rain,showers,weather_code,snow_depth,freezing_level_height,visibility,soil_temperature_0cm,soil_temperature_6cm,soil_temperature_18cm,soil_temperature_54cm,soil_moisture_0_to_1cm,soil_moisture_1_to_3cm,soil_moisture_3_to_9cm,soil_moisture_9_to_27cm,soil_moisture_27_to_81cm",
|
193 |
-
"required": False,
|
194 |
-
},
|
195 |
-
"daily": {
|
196 |
-
"type": "string",
|
197 |
-
"description": "A list of daily weather variable aggregations which should be returned. Values can be comma separated, or multiple &daily= parameters in the URL can be used. If daily weather variables are specified, parameter timezone is required. Possible values supported temperature_2m_max, temperature_2m_min, apparent_temperature_max, apparent_temperature_min, precipitation_sum, rain_sum, showers_sum, snowfall_sum, precipitation_hours, ,precipitation_probability_max, precipitation_probability_min, precipitation_probability_mean, weather_code,sunrise,sunset,sunshine_duration, daylight_duration, wind_speed_10m_max, wind_gusts_10m_max, wind_direction_10m_dominant,shortwave_radiation_sum,et0_fao_evapotranspiration,uv_index_maxuv_index_clear_sky_max",
|
198 |
-
"required": False,
|
199 |
-
},
|
200 |
-
"temperature_unit": {
|
201 |
-
"type": "string",
|
202 |
-
"description": "If fahrenheit is set, all temperature values are converted to Fahrenheit.",
|
203 |
-
"required": False,
|
204 |
-
"default": "celsius",
|
205 |
-
},
|
206 |
-
"wind_speed_unit": {
|
207 |
-
"type": "string",
|
208 |
-
"description": "Other wind speed units: ms, mph, and kn.",
|
209 |
-
"required": False,
|
210 |
-
"default": "kmh",
|
211 |
-
},
|
212 |
-
"precipitation_unit": {
|
213 |
-
"type": "string",
|
214 |
-
"description": "Other precipitation amount units: inch.",
|
215 |
-
"required": False,
|
216 |
-
"default": "mm",
|
217 |
-
},
|
218 |
-
"timeformat": {
|
219 |
-
"type": "string",
|
220 |
-
"description": "If format unixtime is selected, all time values are returned in UNIX epoch time in seconds. Please note that all timestamps are in GMT+0! For daily values with unix timestamps, please apply utc_offset_seconds again to get the correct date.",
|
221 |
-
"required": False,
|
222 |
-
"default": "iso8601",
|
223 |
-
},
|
224 |
-
"timezone": {
|
225 |
-
"type": "string",
|
226 |
-
"description": "If timezone is set, all timestamps are returned as local-time and data is returned starting at 00:00 local-time. Any time zone name from the time zone database is supported. If auto is set as a time zone, the coordinates will be automatically resolved to the local time zone. For multiple coordinates, a comma separated list of timezones can be specified.",
|
227 |
-
"required": False,
|
228 |
-
"default": "GMT",
|
229 |
-
},
|
230 |
-
"past_days": {
|
231 |
-
"type": "integer",
|
232 |
-
"description": "If past_days is set, yesterday or the day before yesterday data are also returned.",
|
233 |
-
"required": False,
|
234 |
-
"default": 0,
|
235 |
-
},
|
236 |
-
"forecast_days": {
|
237 |
-
"type": "integer",
|
238 |
-
"description": "Per default, only 7 days are returned. Up to 16 days of forecast are possible.",
|
239 |
-
"required": False,
|
240 |
-
"default": 7,
|
241 |
-
},
|
242 |
-
"forecast_hours": {
|
243 |
-
"type": "integer",
|
244 |
-
"description": "Similar to forecast_days, the number of timesteps of hourly data can be controlled.",
|
245 |
-
"required": False,
|
246 |
-
},
|
247 |
-
"forecast_minutely_15": {
|
248 |
-
"type": "integer",
|
249 |
-
"description": "The number of timesteps of 15-minutely data can be controlled.",
|
250 |
-
"required": False,
|
251 |
-
},
|
252 |
-
"past_hours": {
|
253 |
-
"type": "integer",
|
254 |
-
"description": "the number of timesteps of hourly data controlled",
|
255 |
-
"required": False,
|
256 |
-
},
|
257 |
-
"past_minutely_15": {
|
258 |
-
"type": "integer",
|
259 |
-
"description": "the number of timesteps of 15 minute data controlled",
|
260 |
-
"required": False,
|
261 |
-
},
|
262 |
-
"start_date": {
|
263 |
-
"type": "string",
|
264 |
-
"description": "The time interval to get weather data. A day must be specified as an ISO8601 date (e.g. 2022-06-30).",
|
265 |
-
"required": False,
|
266 |
-
},
|
267 |
-
"end_date": {
|
268 |
-
"type": "string",
|
269 |
-
"description": "",
|
270 |
-
"required": False,
|
271 |
-
},
|
272 |
-
"start_hour": {
|
273 |
-
"type": "string",
|
274 |
-
"description": "The time interval to get weather data for hourly data. Time must be specified as an ISO8601 date and time (e.g. 2022-06-30T12:00).",
|
275 |
-
"required": False,
|
276 |
-
},
|
277 |
-
"end_hour": {
|
278 |
-
"type": "string",
|
279 |
-
"description": "",
|
280 |
-
"required": False,
|
281 |
-
},
|
282 |
-
"start_minutely_15": {
|
283 |
-
"type": "string",
|
284 |
-
"description": "",
|
285 |
-
"required": False,
|
286 |
-
},
|
287 |
-
"end_minutely_15": {
|
288 |
-
"type": "string",
|
289 |
-
"description": "",
|
290 |
-
"required": False,
|
291 |
-
},
|
292 |
-
"models": {
|
293 |
-
"type": "list",
|
294 |
-
"items": {"type": "string"},
|
295 |
-
"description": "A list of string, manually select one or more weather models. Per default, the best suitable weather models will be combined.",
|
296 |
-
"required": False,
|
297 |
-
},
|
298 |
-
"cell_selection": {
|
299 |
-
"type": "string",
|
300 |
-
"description": "Set a preference how grid-cells are selected. The default land finds a suitable grid-cell on land with similar elevation to the requested coordinates using a 90-meter digital elevation model. sea prefers grid-cells on sea. nearest selects the nearest possible grid-cell.",
|
301 |
-
"required": False,
|
302 |
-
},
|
303 |
-
"apikey": {
|
304 |
-
"type": "string",
|
305 |
-
"description": "Only required to commercial use to access reserved API resources for customers. The server URL requires the prefix customer-. See pricing for more information.",
|
306 |
-
"required": False,
|
307 |
-
},
|
308 |
-
},
|
309 |
-
"allow_redirects": {
|
310 |
-
"type": "boolean",
|
311 |
-
"description": "A Boolean to enable/disable redirection.",
|
312 |
-
"default": True,
|
313 |
-
"required": False,
|
314 |
-
},
|
315 |
-
"auth": {
|
316 |
-
"type": "tuple",
|
317 |
-
"description": "A tuple to enable a certain HTTP authentication.",
|
318 |
-
"default": "None",
|
319 |
-
"required": False,
|
320 |
-
},
|
321 |
-
"cert": {
|
322 |
-
"type": ["string", "tuple"],
|
323 |
-
"description": "A String or Tuple specifying a cert file or key.",
|
324 |
-
"default": "None",
|
325 |
-
"required": False,
|
326 |
-
},
|
327 |
-
"cookies": {
|
328 |
-
"type": "dict",
|
329 |
-
"additionalProperties": {"type": "string"},
|
330 |
-
"description": "Dictionary of cookies to send with the request.",
|
331 |
-
"required": False,
|
332 |
-
},
|
333 |
-
"proxies": {
|
334 |
-
"type": "dict",
|
335 |
-
"additionalProperties": {"type": "string"},
|
336 |
-
"description": "Dictionary of the protocol to the proxy url.",
|
337 |
-
"required": False,
|
338 |
-
},
|
339 |
-
"stream": {
|
340 |
-
"type": "boolean",
|
341 |
-
"description": "A Boolean indication if the response should be immediately downloaded (False) or streamed (True).",
|
342 |
-
"default": False,
|
343 |
-
"required": False,
|
344 |
-
},
|
345 |
-
"verify": {
|
346 |
-
"type": ["boolean", "string"],
|
347 |
-
"description": "A Boolean or a String indication to verify the servers TLS certificate or not.",
|
348 |
-
"default": True,
|
349 |
-
"required": False,
|
350 |
-
},
|
351 |
-
},
|
352 |
-
},
|
353 |
-
},
|
354 |
-
]
|
355 |
-
|
356 |
-
PROMPTS = [
|
357 |
-
"Can you provide address for latitude 37.4224764 and longitude -122.0842499 using the Geocoding API?",
|
358 |
-
"I'm planning a series of long weekend getaways for the upcoming year and I need to know when they'll occur in my country. Could you fetch me the list of long weekends for Canada in the year 2023? I'd like to integrate this information into my holiday planning app.",
|
359 |
-
"I'm planning a camping trip and I need to know the weather forecast. Can you fetch me the weather data for the campsite located at latitude 35.68 and longitude -121.34 for the next 10 days including daily temperature and precipitation forecasts? Also, I prefer the temperature 2 minute max in Fahrenheit and sum of precipitation in inches.",
|
360 |
-
]
|
361 |
-
|
362 |
-
EXAMPLES = [
|
363 |
-
{
|
364 |
-
"name": "requests.get",
|
365 |
-
"description": "Sends a GET request to the specified URL.",
|
366 |
-
"parameters": {
|
367 |
-
"type": "object",
|
368 |
-
"properties": {
|
369 |
-
"url": {
|
370 |
-
"type": "string",
|
371 |
-
"description": "Get statistics for all countries about COVID-19",
|
372 |
-
"default": "https://covid-193.p.rapidapi.com/statistics",
|
373 |
-
},
|
374 |
-
"headers": {
|
375 |
-
"properties": {
|
376 |
-
"X-RapidAPI-Key": {
|
377 |
-
"type": "string",
|
378 |
-
"description": "The API key for authenticating requests to RapidAPI.",
|
379 |
-
},
|
380 |
-
"X-RapidAPI-Host": {
|
381 |
-
"type": "string",
|
382 |
-
"description": "The host domain for the RapidAPI service being accessed.",
|
383 |
-
},
|
384 |
-
},
|
385 |
-
"type": "object",
|
386 |
-
"required": ["X-RapidAPI-Key", "X-RapidAPI-Host"],
|
387 |
-
},
|
388 |
-
"timeout": {
|
389 |
-
"type": "string",
|
390 |
-
"description": "How many seconds to wait for the server to send data before giving up.",
|
391 |
-
},
|
392 |
-
"params": {
|
393 |
-
"properties": {
|
394 |
-
"country": {
|
395 |
-
"type": "string",
|
396 |
-
"description": "Name of the country to retrieve data for. Use '[All]' to indicate a global history request.",
|
397 |
-
}
|
398 |
-
},
|
399 |
-
"type": "object",
|
400 |
-
"required": [],
|
401 |
-
},
|
402 |
-
"allow_redirects": {
|
403 |
-
"type": "boolean",
|
404 |
-
"description": "A Boolean to enable/disable redirection.",
|
405 |
-
"default": True,
|
406 |
-
},
|
407 |
-
"auth": {
|
408 |
-
"type": "tuple",
|
409 |
-
"description": "A tuple to enable a certain HTTP authentication.",
|
410 |
-
"default": "None",
|
411 |
-
},
|
412 |
-
"cert": {
|
413 |
-
"type": "string",
|
414 |
-
"description": "A String or Tuple specifying a cert file or key.",
|
415 |
-
"default": "None",
|
416 |
-
},
|
417 |
-
"cookies": {
|
418 |
-
"type": "object",
|
419 |
-
"additionalProperties": {"type": "string"},
|
420 |
-
"description": "Dictionary of cookies to send with the request.",
|
421 |
-
},
|
422 |
-
"proxies": {
|
423 |
-
"type": "object",
|
424 |
-
"additionalProperties": {"type": "string"},
|
425 |
-
"description": "Dictionary of the protocol to the proxy url.",
|
426 |
-
},
|
427 |
-
"stream": {
|
428 |
-
"type": "boolean",
|
429 |
-
"description": "A Boolean indication if the response should be immediately downloaded (False) or streamed (True).",
|
430 |
-
"default": False,
|
431 |
-
},
|
432 |
-
"verify": {
|
433 |
-
"type": "string",
|
434 |
-
"description": "A Boolean or a String indication to verify the servers TLS certificate or not.",
|
435 |
-
"default": True,
|
436 |
-
},
|
437 |
-
},
|
438 |
-
},
|
439 |
-
"required": ["url"],
|
440 |
-
},
|
441 |
-
{
|
442 |
-
"name": "requests.get",
|
443 |
-
"description": "Sends a GET request to the specified URL.",
|
444 |
-
"parameters": {
|
445 |
-
"type": "object",
|
446 |
-
"properties": {
|
447 |
-
"url": {
|
448 |
-
"type": "string",
|
449 |
-
"description": "Geocoding API converting a human-readable address into a pair of latitude and longitude coordinates",
|
450 |
-
"default": "https://geocode.maps.co/search",
|
451 |
-
},
|
452 |
-
"headers": {"properties": {}, "type": "object", "required": []},
|
453 |
-
"timeout": {
|
454 |
-
"type": "string",
|
455 |
-
"description": "How many seconds to wait for the server to send data before giving up.",
|
456 |
-
},
|
457 |
-
"params": {
|
458 |
-
"properties": {
|
459 |
-
"lat": {
|
460 |
-
"type": "number",
|
461 |
-
"description": "Latitude of the location to reverse geocode.",
|
462 |
-
},
|
463 |
-
"lon": {
|
464 |
-
"type": "number",
|
465 |
-
"description": "Longitude of the location to reverse geocode.",
|
466 |
-
},
|
467 |
-
"api_key": {
|
468 |
-
"type": "string",
|
469 |
-
"description": "Your API key for authentication.",
|
470 |
-
},
|
471 |
-
"format": {
|
472 |
-
"type": "string",
|
473 |
-
"description": "The desired response format. Options include 'xml', 'json', 'jsonv2', 'geojson', 'geocodejson'. Default is 'json'.",
|
474 |
-
},
|
475 |
-
},
|
476 |
-
"type": "object",
|
477 |
-
"required": ["lat", "lon", "api_key"],
|
478 |
-
},
|
479 |
-
"allow_redirects": {
|
480 |
-
"type": "boolean",
|
481 |
-
"description": "A Boolean to enable/disable redirection.",
|
482 |
-
"default": True,
|
483 |
-
},
|
484 |
-
"auth": {
|
485 |
-
"type": "tuple",
|
486 |
-
"description": "A tuple to enable a certain HTTP authentication.",
|
487 |
-
"default": "None",
|
488 |
-
},
|
489 |
-
"cert": {
|
490 |
-
"type": "string",
|
491 |
-
"description": "A String or Tuple specifying a cert file or key.",
|
492 |
-
"default": "None",
|
493 |
-
},
|
494 |
-
"cookies": {
|
495 |
-
"type": "object",
|
496 |
-
"additionalProperties": {"type": "string"},
|
497 |
-
"description": "Dictionary of cookies to send with the request.",
|
498 |
-
},
|
499 |
-
"proxies": {
|
500 |
-
"type": "object",
|
501 |
-
"additionalProperties": {"type": "string"},
|
502 |
-
"description": "Dictionary of the protocol to the proxy url.",
|
503 |
-
},
|
504 |
-
"stream": {
|
505 |
-
"type": "boolean",
|
506 |
-
"description": "A Boolean indication if the response should be immediately downloaded (False) or streamed (True).",
|
507 |
-
"default": False,
|
508 |
-
},
|
509 |
-
"verify": {
|
510 |
-
"type": "string",
|
511 |
-
"description": "A Boolean or a String indication to verify the servers TLS certificate or not.",
|
512 |
-
"default": True,
|
513 |
-
},
|
514 |
-
},
|
515 |
-
},
|
516 |
-
"required": ["url"],
|
517 |
-
},
|
518 |
-
{
|
519 |
-
"name": "requests.get",
|
520 |
-
"description": "Sends a GET request to the specified URL.",
|
521 |
-
"parameters": {
|
522 |
-
"type": "object",
|
523 |
-
"properties": {
|
524 |
-
"url": {
|
525 |
-
"type": "string",
|
526 |
-
"description": "Fetches the age rating of a movie from the OMDB API.",
|
527 |
-
"default": "http://www.omdbapi.com/",
|
528 |
-
},
|
529 |
-
"headers": {"properties": {}, "type": "object", "required": []},
|
530 |
-
"timeout": {
|
531 |
-
"type": "string",
|
532 |
-
"description": "How many seconds to wait for the server to send data before giving up.",
|
533 |
-
},
|
534 |
-
"params": {
|
535 |
-
"properties": {
|
536 |
-
"i": {
|
537 |
-
"type": "string",
|
538 |
-
"description": "A valid IMDb ID (e.g., tt1285016).",
|
539 |
-
},
|
540 |
-
"t": {
|
541 |
-
"type": "string",
|
542 |
-
"description": "Movie title to search for.",
|
543 |
-
},
|
544 |
-
"type": {
|
545 |
-
"type": "string",
|
546 |
-
"description": "Type of result to return. Valid options are 'movie', 'series', and 'episode'.",
|
547 |
-
},
|
548 |
-
"y": {"type": "string", "description": "Year of release."},
|
549 |
-
"plot": {
|
550 |
-
"type": "string",
|
551 |
-
"description": "Return short or full plot. Default is 'short'.",
|
552 |
-
},
|
553 |
-
"r": {
|
554 |
-
"type": "string",
|
555 |
-
"description": "The data type to return. Default is 'json'.",
|
556 |
-
},
|
557 |
-
"callback": {
|
558 |
-
"type": "string",
|
559 |
-
"description": "JSONP callback name.",
|
560 |
-
},
|
561 |
-
"v": {
|
562 |
-
"type": "integer",
|
563 |
-
"description": "API version (reserved for future use). Default is 1.",
|
564 |
-
},
|
565 |
-
},
|
566 |
-
"type": "object",
|
567 |
-
"required": [],
|
568 |
-
},
|
569 |
-
"allow_redirects": {
|
570 |
-
"type": "boolean",
|
571 |
-
"description": "A Boolean to enable/disable redirection.",
|
572 |
-
"default": True,
|
573 |
-
},
|
574 |
-
"auth": {
|
575 |
-
"type": "tuple",
|
576 |
-
"description": "A tuple to enable a certain HTTP authentication.",
|
577 |
-
"default": "None",
|
578 |
-
},
|
579 |
-
"cert": {
|
580 |
-
"type": "string",
|
581 |
-
"description": "A String or Tuple specifying a cert file or key.",
|
582 |
-
"default": "None",
|
583 |
-
},
|
584 |
-
"cookies": {
|
585 |
-
"type": "object",
|
586 |
-
"additionalProperties": {"type": "string"},
|
587 |
-
"description": "Dictionary of cookies to send with the request.",
|
588 |
-
},
|
589 |
-
"proxies": {
|
590 |
-
"type": "object",
|
591 |
-
"additionalProperties": {"type": "string"},
|
592 |
-
"description": "Dictionary of the protocol to the proxy url.",
|
593 |
-
},
|
594 |
-
"stream": {
|
595 |
-
"type": "boolean",
|
596 |
-
"description": "A Boolean indication if the response should be immediately downloaded (False) or streamed (True).",
|
597 |
-
"default": False,
|
598 |
-
},
|
599 |
-
"verify": {
|
600 |
-
"type": "string",
|
601 |
-
"description": "A Boolean or a String indication to verify the servers TLS certificate or not.",
|
602 |
-
"default": True,
|
603 |
-
},
|
604 |
-
},
|
605 |
-
},
|
606 |
-
"required": ["url"],
|
607 |
-
},
|
608 |
-
]
|
609 |
-
|
610 |
-
PROMPTS = [
|
611 |
-
"While I'm working on a dashboard to display real-time COVID-19 statistics for Uganda, including total cases, recoveries, and deaths, I realized I need to use the API Sports COVID-19 API for accurate data. Given that I have my API key as '123456' and the host as 'covid-193.p.rapidapi.com', how can I fetch the latest statistics ensuring the request times out if it takes longer than 10 seconds? Also, how can I make sure the response is not streamed?",
|
612 |
-
"Use my API key '123456', can you convert the address 'Soda Hall, Berkeley, CA' to latitude and longitude coordinates using our Geocoding API, and also make sure to return the results in GeoJSON format?",
|
613 |
-
"I'm looking to fetch the full plot details for the movie 'Gorilla' from the OMDB API. Can you provide me with the Python requests.get code to retrieve the information in JSON format? I can provide the API key, it's '123456'.",
|
614 |
-
]
|
615 |
-
|
616 |
-
COLUMNS = [
|
617 |
-
"Rank",
|
618 |
-
"Overall Acc",
|
619 |
-
"Model",
|
620 |
-
"Simple Function AST",
|
621 |
-
"Multiple Functions AST",
|
622 |
-
"Parallel Functions AST",
|
623 |
-
"Parallel Multiple AST",
|
624 |
-
"Simple Function Exec",
|
625 |
-
"Multiple Functions Exec",
|
626 |
-
"Parallel Functions Exec",
|
627 |
-
"Parallel Multiple Exec",
|
628 |
-
"Relevance Detection",
|
629 |
-
"Cost ($)",
|
630 |
-
"Latency Mean (s)",
|
631 |
-
"Latency SD (s)",
|
632 |
-
"Latency P95 (s)",
|
633 |
-
"Organization",
|
634 |
-
"License",
|
635 |
-
]
|
636 |
-
|
637 |
-
COLUMNS_SUMMARY = [
|
638 |
-
"Rank",
|
639 |
-
"Overall Acc",
|
640 |
-
"Model",
|
641 |
-
"AST Summary",
|
642 |
-
"Exec Summary",
|
643 |
-
"Relevance Detection",
|
644 |
-
"Cost ($ Per 1k Function Calls)",
|
645 |
-
"Latency Mean (s)",
|
646 |
-
"Organization",
|
647 |
-
"License",
|
648 |
-
]
|
649 |
-
|
650 |
-
|
651 |
-
def parse_csv(text):
|
652 |
-
lines = text.split("\n")
|
653 |
-
lines = lines[1:]
|
654 |
-
result = []
|
655 |
-
for i in range(len(lines)):
|
656 |
-
row = lines[i].split(",")
|
657 |
-
row = [parse_value(value) for value in row]
|
658 |
-
row.pop(3)
|
659 |
-
row.pop(5)
|
660 |
-
row.pop(5)
|
661 |
-
row.pop(6)
|
662 |
-
row.pop(6)
|
663 |
-
row.pop(6)
|
664 |
-
row.pop(10)
|
665 |
-
row.pop(10)
|
666 |
-
|
667 |
-
result.append(row)
|
668 |
-
return result
|
669 |
-
|
670 |
-
|
671 |
-
def parse_value(value):
|
672 |
-
if value.endswith("%"):
|
673 |
-
return float(value[:-1])
|
674 |
-
try:
|
675 |
-
return float(value)
|
676 |
-
except:
|
677 |
-
return value
|
678 |
-
|
679 |
-
|
680 |
-
with open("./data.csv", "r") as file:
|
681 |
-
csv_text = file.read()
|
682 |
-
DATA = parse_csv(csv_text)
|
683 |
-
DATA_SUMMARY = [
|
684 |
-
row[:5]
|
685 |
-
+ [round((row[5] + row[6] + row[7] + row[8]) / 4, 2)]
|
686 |
-
+ [round((row[9] + row[10] + row[11] + row[12]) / 4, 2)]
|
687 |
-
+ row[13:16]
|
688 |
-
for row in DATA
|
689 |
-
]
|
690 |
-
DATA = [row[:3] + row[5:] + row[3:5] for row in DATA]
|
691 |
-
|
692 |
-
DATA_SUMMARY = [row[:3] + row[5:] + row[3:5] for row in DATA_SUMMARY]
|
693 |
-
|
694 |
-
MODELS = [
|
695 |
-
"gorilla-openfunctions-v2",
|
696 |
-
"gpt-4-1106-preview-fc",
|
697 |
-
"gpt-4-0125-preview-fc",
|
698 |
-
"gpt-3.5-turbo-0125-fc",
|
699 |
-
"mistral-large-fc",
|
700 |
-
]
|
701 |
-
|
702 |
-
|
703 |
-
def send_feedback(prompt, function, model, temperature, codeOutput, jsonOutput, vote):
|
704 |
-
# Login and get access token
|
705 |
-
login_url = "https://us-west-2.aws.realm.mongodb.com/api/client/v2.0/app/data-onwzq/auth/providers/local-userpass/login"
|
706 |
-
headers = {"Content-Type": "application/json"}
|
707 |
-
login_data = {"username": "website", "password": mongoDBPassword}
|
708 |
-
response = requests.post(login_url, headers=headers, json=login_data)
|
709 |
-
access_token = response.json()["access_token"]
|
710 |
-
# Prepare data for sending feedback
|
711 |
-
url = "https://us-west-2.aws.data.mongodb-api.com/app/data-onwzq/endpoint/data/v1/action/insertOne"
|
712 |
-
headers = {
|
713 |
-
"Content-Type": "application/json",
|
714 |
-
"Access-Control-Request-Headers": "*",
|
715 |
-
"Authorization": f"Bearer {access_token}",
|
716 |
-
}
|
717 |
-
|
718 |
-
if not prompt or not function:
|
719 |
-
return
|
720 |
-
|
721 |
-
body = {
|
722 |
-
"collection": "vote",
|
723 |
-
"database": "gorilla-feedback",
|
724 |
-
"dataSource": "gorilla",
|
725 |
-
"document": {
|
726 |
-
"prompt": prompt,
|
727 |
-
"funcDef": function,
|
728 |
-
"temperature": temperature,
|
729 |
-
"model": model,
|
730 |
-
"codeOutput": codeOutput,
|
731 |
-
"jsonOutput": jsonOutput,
|
732 |
-
"result": vote,
|
733 |
-
},
|
734 |
-
}
|
735 |
-
|
736 |
-
# Send feedback
|
737 |
-
response = requests.post(url, headers=headers, json=body)
|
738 |
-
if response.ok:
|
739 |
-
print("Document inserted:", response.json())
|
740 |
-
else:
|
741 |
-
print("Error:", response.text)
|
742 |
-
|
743 |
-
|
744 |
-
def get_voting_result():
|
745 |
-
login_url = "https://us-west-2.aws.realm.mongodb.com/api/client/v2.0/app/data-onwzq/auth/providers/local-userpass/login"
|
746 |
-
headers = {"Content-Type": "application/json"}
|
747 |
-
login_data = {"username": "website", "password": mongoDBPassword}
|
748 |
-
response = requests.post(login_url, headers=headers, json=login_data)
|
749 |
-
access_token = response.json()["access_token"]
|
750 |
-
|
751 |
-
# Scanning the database
|
752 |
-
url = "https://us-west-2.aws.data.mongodb-api.com/app/data-onwzq/endpoint/data/v1/action/find"
|
753 |
-
headers = {
|
754 |
-
"Content-Type": "application/json",
|
755 |
-
"Access-Control-Request-Headers": "*",
|
756 |
-
"Authorization": f"Bearer {access_token}",
|
757 |
-
}
|
758 |
-
body = {
|
759 |
-
"collection": "vote",
|
760 |
-
"database": "gorilla-feedback",
|
761 |
-
"dataSource": "gorilla",
|
762 |
-
}
|
763 |
-
response = requests.post(url, headers=headers, json=body)
|
764 |
-
if response.ok:
|
765 |
-
data = response.json()
|
766 |
-
votes = data["documents"]
|
767 |
-
votes = [vote for vote in votes if vote["result"] in ["positive", "negative"]]
|
768 |
-
# extract only the model, positive count, negative count
|
769 |
-
model_votes = {}
|
770 |
-
for vote in votes:
|
771 |
-
model = vote["model"]
|
772 |
-
if model not in model_votes:
|
773 |
-
model_votes[model] = {"positive": 0, "negative": 0}
|
774 |
-
model_votes[model][vote["result"]] += 1
|
775 |
-
for model in model_votes:
|
776 |
-
model_votes[model]["accuracy"] = model_votes[model]["positive"] / (
|
777 |
-
model_votes[model]["positive"] + model_votes[model]["negative"]
|
778 |
-
)
|
779 |
-
|
780 |
-
result = []
|
781 |
-
for model in model_votes:
|
782 |
-
result.append(
|
783 |
-
[
|
784 |
-
model,
|
785 |
-
model_votes[model]["accuracy"],
|
786 |
-
model_votes[model]["positive"],
|
787 |
-
model_votes[model]["negative"],
|
788 |
-
]
|
789 |
-
)
|
790 |
-
result = sorted(result, key=lambda x: x[1], reverse=True)
|
791 |
-
return pd.DataFrame(
|
792 |
-
result, columns=["Model", "Accuracy", "Positive", "Negative"]
|
793 |
-
)
|
794 |
-
else:
|
795 |
-
print("Error:", response.text)
|
796 |
-
return []
|
797 |
-
|
798 |
-
|
799 |
-
def send_feedback_negative(
|
800 |
-
prompt, function, model, temperature, codeOutput, jsonOutput
|
801 |
-
):
|
802 |
-
send_feedback(
|
803 |
-
prompt, function, model, temperature, codeOutput, jsonOutput, "negative"
|
804 |
-
)
|
805 |
-
return "Thank you for your feedback. We will use this to improve our service."
|
806 |
-
|
807 |
-
|
808 |
-
def send_feedback_positive(
|
809 |
-
prompt, function, model, temperature, codeOutput, jsonOutput
|
810 |
-
):
|
811 |
-
send_feedback(
|
812 |
-
prompt, function, model, temperature, codeOutput, jsonOutput, "positive"
|
813 |
-
)
|
814 |
-
return "Thank you for your feedback. We will use this to improve our service."
|
815 |
-
|
816 |
-
|
817 |
-
def report_issue(prompt, model, temperature, codeOutput, jsonOutput):
|
818 |
-
print("Reporting issue")
|
819 |
-
issueTitle = "[bug] OpenFunctions-v2: "
|
820 |
-
issueBody = f"**Issue Description**\n\nPrompt: {prompt}\n\nModel: {model}\n\nTemperature: {temperature}\n\nOutput (or Error if request failed): {codeOutput} \n\n {jsonOutput}\n\n**Additional Information**\n"
|
821 |
-
webbrowser.open_new_tab(
|
822 |
-
f"https://github.com/ShishirPatil/gorilla/issues/new?assignees=&labels=hosted-openfunctions-v2&projects=&template=hosted-openfunctions-v2.md&title=${issueTitle}&body=${issueBody}"
|
823 |
-
)
|
824 |
-
|
825 |
-
|
826 |
-
def fill_example(index):
|
827 |
-
prompt = PROMPTS[index]
|
828 |
-
function = EXAMPLES[index]
|
829 |
-
model = "gorilla-openfunctions-v2"
|
830 |
-
return prompt, json.dumps(function, indent=2), model
|
831 |
-
|
832 |
-
|
833 |
-
def cast_multi_param_type(properties):
|
834 |
-
"""
|
835 |
-
OpenAI rejects parameters type other than JSON serializable type.
|
836 |
-
Since our evaluation contains Python specific types, we need some casting
|
837 |
-
"""
|
838 |
-
for key, value in properties.items():
|
839 |
-
if "type" not in value:
|
840 |
-
properties[key]["type"] = "string"
|
841 |
-
else:
|
842 |
-
value["type"] = value["type"].lower()
|
843 |
-
if value["type"] not in [
|
844 |
-
"object",
|
845 |
-
"string",
|
846 |
-
"number",
|
847 |
-
"boolean",
|
848 |
-
"array",
|
849 |
-
"integer",
|
850 |
-
]:
|
851 |
-
properties[key]["type"] = "string"
|
852 |
-
elif value["type"] == "array" and "items" not in properties[key].keys():
|
853 |
-
properties[key]["items"] = {"type": "object"}
|
854 |
-
elif (
|
855 |
-
value["type"] == "array"
|
856 |
-
and "type" not in properties[key]["items"].keys()
|
857 |
-
):
|
858 |
-
properties[key]["items"]["type"] = "object"
|
859 |
-
elif value["type"] == "array" and properties[key]["items"]["type"] not in [
|
860 |
-
"object",
|
861 |
-
"string",
|
862 |
-
"number",
|
863 |
-
"boolean",
|
864 |
-
"array",
|
865 |
-
"integer",
|
866 |
-
]:
|
867 |
-
properties[key]["items"]["type"] = "string"
|
868 |
-
return properties
|
869 |
-
|
870 |
-
|
871 |
-
def get_gorilla_response(prompt, function, model, temperature):
|
872 |
-
requestData = {
|
873 |
-
"model": model,
|
874 |
-
"messages": [{"role": "user", "content": prompt}],
|
875 |
-
"functions": [function],
|
876 |
-
"temperature": temperature,
|
877 |
-
}
|
878 |
-
url = "https://luigi.millennium.berkeley.edu:443/v1/chat/completions"
|
879 |
-
response = requests.post(
|
880 |
-
url,
|
881 |
-
headers={
|
882 |
-
"Content-Type": "application/json",
|
883 |
-
"Authorization": "EMPTY", # Hosted for free with ❤️ from UC Berkeley
|
884 |
-
},
|
885 |
-
data=json.dumps(requestData),
|
886 |
-
)
|
887 |
-
jsonResponse = response.json()
|
888 |
-
directCode = jsonResponse["choices"][0]["message"]["content"]
|
889 |
-
jsonCode = jsonResponse["choices"][0]["message"]["function_call"]
|
890 |
-
jsonFormatted = json.dumps(jsonCode, indent=2)
|
891 |
-
return directCode, jsonFormatted
|
892 |
-
|
893 |
-
|
894 |
-
def get_openai_response(prompt, function, model, temperature):
|
895 |
-
model = model[:-3]
|
896 |
-
client = OpenAI(api_key=openaiKey)
|
897 |
-
oai_tool = []
|
898 |
-
function = json.loads(function)
|
899 |
-
item = function # use item in the later code
|
900 |
-
if "." in item["name"]:
|
901 |
-
item["name"] = re.sub(
|
902 |
-
r"\.", "_", item["name"]
|
903 |
-
) # OAI does not support "." in the function name so we replace it with "_". ^[a-zA-Z0-9_-]{1,64}$ is the regex for the name.
|
904 |
-
item["parameters"][
|
905 |
-
"type"
|
906 |
-
] = "object" # If typing is missing, we assume it is an object since OAI requires a type.
|
907 |
-
if "properties" not in item["parameters"]:
|
908 |
-
item["parameters"]["properties"] = item["parameters"].copy()
|
909 |
-
item["parameters"]["type"] = "object"
|
910 |
-
for key in list(item["parameters"].keys()).copy():
|
911 |
-
if key != "properties" and key != "type" and key != "required":
|
912 |
-
del item["parameters"][key]
|
913 |
-
for key in list(item["parameters"]["properties"].keys()).copy():
|
914 |
-
if key == "required" or key == "type":
|
915 |
-
del item["parameters"]["properties"][key]
|
916 |
-
item["parameters"]["properties"] = cast_multi_param_type(
|
917 |
-
item["parameters"]["properties"]
|
918 |
-
)
|
919 |
-
oai_tool.append({"type": "function", "function": item})
|
920 |
-
message = [{"role": "user", "content": "Questions: " + prompt}]
|
921 |
-
if len(oai_tool) > 0:
|
922 |
-
response = client.chat.completions.create(
|
923 |
-
messages=message,
|
924 |
-
model=model,
|
925 |
-
temperature=temperature,
|
926 |
-
tools=oai_tool,
|
927 |
-
)
|
928 |
-
else:
|
929 |
-
response = client.chat.completions.create(
|
930 |
-
messages=message,
|
931 |
-
model=model,
|
932 |
-
temperature=temperature,
|
933 |
-
)
|
934 |
-
try:
|
935 |
-
func_call = response.choices[0].message.tool_calls[0]
|
936 |
-
result = {func_call.function.name: func_call.function.arguments}
|
937 |
-
try:
|
938 |
-
key = list(result.keys())[0]
|
939 |
-
result[key] = json.loads(result[key])
|
940 |
-
result = json.dumps(result, indent=2)
|
941 |
-
return "No direct code output for this model.", result
|
942 |
-
except:
|
943 |
-
return "No direct code output for this model.", result
|
944 |
-
except:
|
945 |
-
result = response.choices[0].message.content
|
946 |
-
return result, "The model failed to return a JSON output."
|
947 |
-
|
948 |
-
|
949 |
-
def get_mistral_response(prompt, function, model, temperature):
|
950 |
-
client = MistralClient(api_key=mistralKey)
|
951 |
-
oai_tool = []
|
952 |
-
function = json.loads(function)
|
953 |
-
item = function # use item in the later code
|
954 |
-
if "." in item["name"]:
|
955 |
-
item["name"] = re.sub(
|
956 |
-
r"\.", "_", item["name"]
|
957 |
-
) # OAI does not support "." in the function name so we replace it with "_". ^[a-zA-Z0-9_-]{1,64}$ is the regex for the name.
|
958 |
-
item["parameters"][
|
959 |
-
"type"
|
960 |
-
] = "object" # If typing is missing, we assume it is an object since OAI requires a type.
|
961 |
-
if "properties" not in item["parameters"]:
|
962 |
-
item["parameters"]["properties"] = item["parameters"].copy()
|
963 |
-
item["parameters"]["type"] = "object"
|
964 |
-
for key in list(item["parameters"].keys()).copy():
|
965 |
-
if key != "properties" and key != "type" and key != "required":
|
966 |
-
del item["parameters"][key]
|
967 |
-
for key in list(item["parameters"]["properties"].keys()).copy():
|
968 |
-
if key == "required" or key == "type":
|
969 |
-
del item["parameters"]["properties"][key]
|
970 |
-
item["parameters"]["properties"] = cast_multi_param_type(
|
971 |
-
item["parameters"]["properties"]
|
972 |
-
)
|
973 |
-
oai_tool.append({"type": "function", "function": item})
|
974 |
-
message = [
|
975 |
-
ChatMessage(role="user", content=prompt),
|
976 |
-
]
|
977 |
-
chat_response = client.chat(
|
978 |
-
model="mistral-large-latest",
|
979 |
-
messages=message,
|
980 |
-
tools=oai_tool,
|
981 |
-
temperature=temperature,
|
982 |
-
)
|
983 |
-
try:
|
984 |
-
func_call = chat_response.choices[0].message.tool_calls[0]
|
985 |
-
result = {func_call.function.name: func_call.function.arguments}
|
986 |
-
try:
|
987 |
-
key = list(result.keys())[0]
|
988 |
-
result[key] = json.loads(result[key])
|
989 |
-
result = json.dumps(result, indent=2)
|
990 |
-
return "No direct code output for this model.", result
|
991 |
-
except:
|
992 |
-
return "No direct code output for this model.", result
|
993 |
-
except:
|
994 |
-
result = chat_response.choices[0].message.content
|
995 |
-
return result, "The model failed to return a JSON output."
|
996 |
-
|
997 |
-
|
998 |
-
def distribute_task(prompt, function, model, temperature):
|
999 |
-
if "gpt" in model:
|
1000 |
-
return get_openai_response(prompt, function, model, temperature)
|
1001 |
-
elif "mistral" in model:
|
1002 |
-
return get_mistral_response(prompt, function, model, temperature)
|
1003 |
-
else:
|
1004 |
-
return get_gorilla_response(prompt, function, model, temperature)
|
1005 |
-
return "", ""
|
1006 |
-
|
1007 |
-
|
1008 |
-
def get_leaderboard():
|
1009 |
-
# Convert the leaderboard data to a pandas DataFrame for easier handling and display
|
1010 |
-
leaderboard_df = pd.DataFrame(DATA, columns=COLUMNS)
|
1011 |
-
leaderboard_df = leaderboard_df.sort_values(by="Rank")
|
1012 |
-
return leaderboard_df
|
1013 |
-
|
1014 |
-
|
1015 |
-
def get_summary():
|
1016 |
-
# Convert the leaderboard data to a pandas DataFrame for easier handling and display
|
1017 |
-
leaderboard_df = pd.DataFrame(DATA_SUMMARY, columns=COLUMNS_SUMMARY)
|
1018 |
-
leaderboard_df = leaderboard_df.sort_values(by="Rank")
|
1019 |
-
return leaderboard_df
|
1020 |
-
|
1021 |
-
|
1022 |
-
prompt = gr.Textbox(label="Prompt", placeholder="Type your prompt here...", lines=4)
|
1023 |
-
funcDescription = gr.Textbox(
|
1024 |
-
label="Function Description", placeholder="Describe the function...", lines=20
|
1025 |
-
)
|
1026 |
-
model = gr.Dropdown(label="Model", choices=MODELS)
|
1027 |
-
|
1028 |
-
|
1029 |
-
with gr.Blocks() as demo:
|
1030 |
-
with gr.Tabs():
|
1031 |
-
with gr.TabItem("Summary Leaderboard"):
|
1032 |
-
gr.Markdown(
|
1033 |
-
"**This live leaderboard evaluates the LLM's ability to call functions (aka tools) accurately. This leaderboard consists of real-world data and will be updated periodically. For more information on the evaluation dataset and methodology, please refer to our [blog](https://gorilla.cs.berkeley.edu/blogs/8_berkeley_function_calling_leaderboard.html) and [code](https://github.com/ShishirPatil/gorilla).**"
|
1034 |
-
)
|
1035 |
-
gr.Markdown(
|
1036 |
-
"""**AST means evaluation through Abstract Syntax Tree and Exec means evaluation by executing all the API calls the LLM generates.**
|
1037 |
-
|
1038 |
-
**FC = native support for function/tool calling.**
|
1039 |
-
|
1040 |
-
**Cost is calculated as an estimate of the cost per 1000 function calls, in USD. Latency is measured in seconds.**
|
1041 |
-
|
1042 |
-
**AST Summary is the unweighted average of the four test categories under AST Evaluation. Exec Summary is the unweighted average of the four test categories under Exec Evaluation.**
|
1043 |
-
|
1044 |
-
**Click on column header to sort. If you would like to add your model or contribute test-cases, please contact us via [discord](https://discord.gg/SwTyuTAxX3).**
|
1045 |
-
"""
|
1046 |
-
)
|
1047 |
-
leaderboard_data = gr.Dataframe(value=get_summary(), wrap=True)
|
1048 |
-
with gr.TabItem("Full Leaderboard"):
|
1049 |
-
gr.Markdown(
|
1050 |
-
"**This live leaderboard evaluates the LLM's ability to call functions (aka tools) accurately. This leaderboard consists of real-world data and will be updated periodically. For more information on the evaluation dataset and methodology, please refer to our [blog](https://gorilla.cs.berkeley.edu/blogs/8_berkeley_function_calling_leaderboard.html) and [code](https://github.com/ShishirPatil/gorilla).**"
|
1051 |
-
)
|
1052 |
-
gr.Markdown(
|
1053 |
-
"""**AST means evaluation through Abstract Syntax Tree and Exec means evaluation by executing all the API calls the LLM generates.**
|
1054 |
-
|
1055 |
-
**FC = native support for function/tool calling.**
|
1056 |
-
|
1057 |
-
**Cost is calculated as an estimate of the cost per 1000 function calls, in USD. Latency is measured in seconds.**
|
1058 |
-
|
1059 |
-
**Click on column header to sort. If you would like to add your model or contribute test-cases, please contact us via [discord](https://discord.gg/SwTyuTAxX3).**
|
1060 |
-
"""
|
1061 |
-
)
|
1062 |
-
leaderboard_data = gr.Dataframe(value=get_leaderboard(), wrap=True)
|
1063 |
-
|
1064 |
-
with gr.TabItem("Evaluation Categories"):
|
1065 |
-
gr.Markdown(
|
1066 |
-
"""
|
1067 |
-
### What are the different columns representing in the leaderboard?
|
1068 |
-
|
1069 |
-
We provide a short summary here. For more details, please refer to our release [blog](https://gorilla.cs.berkeley.edu/blogs/8_berkeley_function_calling_leaderboard.html):
|
1070 |
-
|
1071 |
-
**AST** means evaluation through Abstract Syntax Tree, and **Exec** means evaluation by executing all the API calls the LLM generates.
|
1072 |
-
|
1073 |
-
**Cost** is calculated as an estimate of the cost per 1000 function calls, in USD.
|
1074 |
-
|
1075 |
-
**Latency** is measured in seconds.
|
1076 |
-
|
1077 |
-
**Simple Function** evaluation contains the simplest but most commonly seen format, where the user supplies a single JSON function document, with one and only one function call will be invoked.
|
1078 |
-
|
1079 |
-
**Multiple Function** contains a user question that only invokes one function call out of 2 to 4 JSON function documentations. The model needs to be capable of selecting the best function to invoke according to user provided context. For example, if the prompt is `what is 2 + 3?` and the options are `add()` and `mult()`, the model should select `add()`.
|
1080 |
-
|
1081 |
-
**Parallel Function** is defined as invoking multiple function calls in parallel with one user query. The model needs to digest how many function calls need to be made and the question to model can be a single sentence or multiple sentence. For example, if the prompt is `What's the weather in San Francisco and New York` and the function provided is `get_weather()`, the model should return both `get_weather('San Francisco')` and `get_weather('New York')`.
|
1082 |
-
|
1083 |
-
**Parallel Multiple Function** is the combination of parallel function and multiple function. In another word, the model is provided with multiple function documentations, each of the corresponding function calls will be invoked zero or more times.
|
1084 |
-
|
1085 |
-
In **relevance detection**, we design scenarios where none of the provided functions are relevant and supposed to be invoked. We expect the model's output to be no function call. This scenario provides insight to whether a model will hallucinate on its function and parameter to generate function code despite lacking the function information or instructions from the users to do so.
|
1086 |
-
"""
|
1087 |
-
)
|
1088 |
-
|
1089 |
-
with gr.TabItem("Try It Out"):
|
1090 |
-
with gr.Row():
|
1091 |
-
with gr.Column(scale=1):
|
1092 |
-
with gr.Row():
|
1093 |
-
example1 = gr.Button("Example 1").click(
|
1094 |
-
fn=lambda: fill_example(0),
|
1095 |
-
outputs=[prompt, funcDescription, model],
|
1096 |
-
)
|
1097 |
-
example2 = gr.Button("Example 2").click(
|
1098 |
-
fn=lambda: fill_example(1),
|
1099 |
-
outputs=[prompt, funcDescription, model],
|
1100 |
-
)
|
1101 |
-
example3 = gr.Button("Example 3").click(
|
1102 |
-
fn=lambda: fill_example(2),
|
1103 |
-
outputs=[prompt, funcDescription, model],
|
1104 |
-
)
|
1105 |
-
|
1106 |
-
with gr.Row():
|
1107 |
-
model.render()
|
1108 |
-
temperature = gr.Slider(
|
1109 |
-
label="Temperature",
|
1110 |
-
minimum=0.1,
|
1111 |
-
maximum=1.0,
|
1112 |
-
value=0.7,
|
1113 |
-
step=0.1,
|
1114 |
-
)
|
1115 |
-
prompt.render()
|
1116 |
-
funcDescription.render()
|
1117 |
-
submit_button = gr.Button("Submit")
|
1118 |
-
with gr.Column(scale=1):
|
1119 |
-
codeOutput = gr.Textbox(
|
1120 |
-
label="Code Output",
|
1121 |
-
placeholder="Code output will be displayed here...",
|
1122 |
-
lines=7,
|
1123 |
-
)
|
1124 |
-
jsonOutput = gr.Textbox(
|
1125 |
-
label="JSON Format (OpenAI compatible)",
|
1126 |
-
placeholder="JSON format will be displayed here...",
|
1127 |
-
lines=20,
|
1128 |
-
)
|
1129 |
-
with gr.Row():
|
1130 |
-
thumbs_up = gr.Button("👍")
|
1131 |
-
thumbs_down = gr.Button("👎")
|
1132 |
-
regenerate_button = gr.Button("Regenerate")
|
1133 |
-
report_issue_button = gr.Button("Report Issue")
|
1134 |
-
feedbackMsg = gr.Markdown()
|
1135 |
-
|
1136 |
-
# Actions
|
1137 |
-
submit_button.click(
|
1138 |
-
fn=distribute_task,
|
1139 |
-
inputs=[prompt, funcDescription, model, temperature],
|
1140 |
-
outputs=[codeOutput, jsonOutput],
|
1141 |
-
)
|
1142 |
-
|
1143 |
-
regenerate_button.click(
|
1144 |
-
fn=distribute_task,
|
1145 |
-
inputs=[prompt, funcDescription, model, temperature],
|
1146 |
-
outputs=[codeOutput, jsonOutput],
|
1147 |
-
)
|
1148 |
-
|
1149 |
-
report_issue_button.click(
|
1150 |
-
fn=None,
|
1151 |
-
inputs=[prompt, model, temperature, codeOutput, jsonOutput],
|
1152 |
-
outputs=[],
|
1153 |
-
js='(prompt, model, temperature, codeOutput, jsonOutput) => window.open(`https://github.com/ShishirPatil/gorilla/issues/new?assignees=&labels=hosted-openfunctions-v2&projects=&template=hosted-openfunctions-v2.md&title=[bug] OpenFunctions-v2: &body=**Issue Description**%0A%0APrompt: ${prompt}%0A%0AModel: ${model}%0A%0ATemperature: ${temperature}%0A%0AOutput (or Error if request failed): ${codeOutput} %0A%0A ${jsonOutput}%0A%0A**Additional Information**\n`, "_blank")',
|
1154 |
-
)
|
1155 |
-
|
1156 |
-
thumbs_up.click(
|
1157 |
-
fn=send_feedback_positive,
|
1158 |
-
inputs=[
|
1159 |
-
prompt,
|
1160 |
-
funcDescription,
|
1161 |
-
model,
|
1162 |
-
temperature,
|
1163 |
-
codeOutput,
|
1164 |
-
jsonOutput,
|
1165 |
-
],
|
1166 |
-
outputs=[feedbackMsg],
|
1167 |
-
)
|
1168 |
-
|
1169 |
-
thumbs_down.click(
|
1170 |
-
fn=send_feedback_negative,
|
1171 |
-
inputs=[
|
1172 |
-
prompt,
|
1173 |
-
funcDescription,
|
1174 |
-
model,
|
1175 |
-
temperature,
|
1176 |
-
codeOutput,
|
1177 |
-
jsonOutput,
|
1178 |
-
],
|
1179 |
-
outputs=[feedbackMsg],
|
1180 |
-
)
|
1181 |
-
|
1182 |
-
# with gr.TabItem("Voting Leaderboard"):
|
1183 |
-
# gr.Markdown("## This is a live leaderboard where you can see user's voting result on the agent's response.")
|
1184 |
-
# leaderboard_data = gr.Dataframe(
|
1185 |
-
# value=get_voting_result(), wrap=True
|
1186 |
-
# )
|
1187 |
-
|
1188 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data.csv
DELETED
@@ -1,58 +0,0 @@
|
|
1 |
-
Rank,Overall Acc,Model,Model Link,Organization,License,AST Summary,Exec Summary,Simple Function AST,Python Simple Function AST,Java Simple Function AST,JavaScript Simple Function AST,Multiple Functions AST,Parallel Functions AST,Parallel Multiple AST,Simple Function Exec,Python Simple Function Exec,REST Simple Function Exec,Multiple Functions Exec,Parallel Functions Exec,Parallel Multiple Exec,Relevance Detection,Cost ($ Per 1k Function Calls),Latency Mean (s),Latency Standard Deviation (s),Latency 95th Percentile (s)
|
2 |
-
1,90.18%,Claude-3.5-Sonnet-20240620 (Prompt),https://www.anthropic.com/news/claude-3-5-sonnet,Anthropic,Proprietary,91.68%,89.50%,86.73%,94.00%,65.00%,72.00%,95.50%,92.50%,92.00%,100.00%,100.00%,100.00%,96.00%,82.00%,80.00%,85.42%,2.2,1.38,1.22,2.12
|
3 |
-
2,88.35%,xLAM-7b-fc-r (FC),https://huggingface.co/Salesforce/xLAM-7b-fc-r,Salesforce,cc-by-nc-4.0,89.45%,87.12%,85.82%,94.75%,60.00%,66.00%,93.00%,91.50%,87.50%,96.47%,99.00%,92.86%,88.00%,84.00%,80.00%,85.00%,N/A,N/A,N/A,N/A
|
4 |
-
3,88.18%,GPT-4-0125-Preview (Prompt),https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo,OpenAI,Proprietary,91.75%,88.10%,88.00%,94.75%,68.00%,74.00%,95.00%,92.00%,92.00%,99.41%,100.00%,98.57%,94.00%,84.00%,75.00%,70.42%,5.26,1.98,1.33,4.47
|
5 |
-
4,87.41%,Claude-3-Opus-20240229 (Prompt),https://www.anthropic.com/news/claude-3-family,Anthropic,Proprietary,88.83%,86.16%,85.82%,93.75%,63.00%,68.00%,94.00%,86.50%,89.00%,97.65%,98.00%,97.14%,92.00%,80.00%,75.00%,80.42%,10.84,4.47,1.6,7.32
|
6 |
-
5,86.53%,Nemotron-4-340b-instruct (Prompt),https://huggingface.co/nvidia/nemotron-4-340b-instruct,NVIDIA,nvidia-open-model-license,87.99%,88.43%,83.45%,90.75%,58.00%,76.00%,92.50%,90.50%,85.50%,98.24%,99.00%,97.14%,96.00%,82.00%,77.50%,78.33%,N/A,7.65,5.65,18.46
|
7 |
-
6,86.24%,yi-large (FC),https://platform.01.ai/,01.AI,Proprietary,88.81%,88.82%,82.73%,92.50%,57.00%,56.00%,92.50%,91.50%,88.50%,95.29%,99.00%,90.00%,94.00%,86.00%,80.00%,75.83%,0.51,4.04,3.7,12.93
|
8 |
-
7,86.00%,GPT-4-turbo-2024-04-09 (Prompt),https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo,OpenAI,Proprietary,90.73%,86.04%,86.91%,94.00%,66.00%,72.00%,95.00%,91.00%,90.00%,97.65%,97.00%,98.57%,94.00%,80.00%,72.50%,62.50%,5.26,2.53,2.2,5.71
|
9 |
-
8,85.53%,GPT-4-1106-Preview (FC),https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo,OpenAI,Proprietary,88.35%,81.73%,82.91%,93.00%,56.00%,56.00%,91.50%,92.50%,86.50%,89.41%,95.00%,81.43%,92.00%,78.00%,67.50%,80.42%,5.07,5.92,6.22,17.64
|
10 |
-
9,85.41%,Granite-20b-FunctionCalling (FC),https://huggingface.co/ibm-granite/granite-20b-functioncalling,IBM,Apache-2.0,85.18%,86.56%,82.73%,90.50%,65.00%,56.00%,90.50%,85.50%,82.00%,88.24%,98.00%,74.29%,90.00%,88.00%,80.00%,87.50%,N/A,N/A,N/A,N/A
|
11 |
-
10,84.82%,GPT-4-0125-Preview (FC),https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo,OpenAI,Proprietary,87.23%,84.76%,80.91%,90.50%,59.00%,48.00%,93.00%,90.50%,84.50%,83.53%,98.00%,62.86%,92.00%,86.00%,77.50%,82.92%,4.81,4.69,5.69,18.17
|
12 |
-
11,84.65%,Meta-Llama-3-70B-Instruct (Prompt),https://llama.meta.com/llama3,Meta,Meta Llama 3 Community,88.49%,85.32%,83.45%,91.00%,60.00%,70.00%,93.00%,91.50%,86.00%,91.76%,95.00%,87.14%,88.00%,84.00%,77.50%,69.17%,1.1,0.18,N/A,N/A
|
13 |
-
12,84.47%,Gorilla-OpenFunctions-v2 (FC),https://gorilla.cs.berkeley.edu/blogs/7_open_functions_v2.html,Gorilla LLM,Apache 2.0,89.11%,81.55%,87.45%,94.75%,65.00%,74.00%,95.00%,87.50%,86.50%,94.71%,94.00%,95.71%,94.00%,70.00%,67.50%,61.25%,0.31,0.05,N/A,N/A
|
14 |
-
13,84.35%,Gemini-1.5-Pro-Preview-0514 (FC),https://deepmind.google/technologies/gemini/pro/,Google,Proprietary,86.38%,83.32%,74.00%,92.00%,22.00%,34.00%,92.00%,91.50%,88.00%,91.76%,96.00%,85.71%,88.00%,76.00%,77.50%,89.58%,0.87,1.93,0.77,3.45
|
15 |
-
14,84.06%,GPT-4-turbo-2024-04-09 (FC),https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo,OpenAI,Proprietary,86.55%,78.61%,78.18%,91.25%,45.00%,40.00%,90.00%,90.00%,88.00%,82.94%,93.00%,68.57%,88.00%,76.00%,67.50%,88.75%,4.58,4.87,5.26,15.31
|
16 |
-
15,83.82%,Gemini-1.5-Pro-Preview-0409 (FC),https://deepmind.google/technologies/gemini/#introduction,Google,Proprietary,86.03%,82.88%,73.64%,91.75%,19.00%,38.00%,92.50%,90.50%,87.50%,90.00%,96.00%,81.43%,90.00%,74.00%,77.50%,88.75%,0.88,1.94,0.86,3.52
|
17 |
-
16,83.59%,GPT-4o-2024-05-13 (FC),https://openai.com/index/hello-gpt-4o/,OpenAI,Proprietary,85.81%,80.37%,80.73%,88.25%,60.00%,62.00%,90.00%,88.00%,84.50%,86.47%,94.00%,75.71%,78.00%,82.00%,75.00%,81.25%,2.3,2.07,2.51,6.95
|
18 |
-
17,82.47%,FireFunction-v2 (FC),https://huggingface.co/fireworks-ai/firefunction-v2,Fireworks,Apache 2.0,87.14%,80.26%,86.55%,94.50%,61.00%,74.00%,91.00%,89.50%,81.50%,93.53%,94.00%,92.86%,88.00%,72.00%,67.50%,56.67%,N/A,1.0,0.72,1.89
|
19 |
-
18,81.76%,Mistral-Medium-2312 (Prompt),https://docs.mistral.ai/guides/model-selection/,Mistral AI,Proprietary,84.48%,73.47%,80.91%,90.25%,56.00%,56.00%,92.00%,84.00%,81.00%,65.88%,96.00%,22.86%,76.00%,82.00%,70.00%,88.33%,1.76,2.69,2.14,6.31
|
20 |
-
19,81.76%,Claude-3-Sonnet-20240229 (Prompt),https://www.anthropic.com/news/claude-3-family,Anthropic,Proprietary,87.43%,86.76%,82.73%,92.00%,59.00%,56.00%,89.00%,88.50%,89.50%,93.53%,96.00%,90.00%,92.00%,84.00%,77.50%,51.25%,2.13,1.89,0.6,3.06
|
21 |
-
20,80.59%,Command-R-Plus (Prompt) (Optimized),https://txt.cohere.com/command-r-plus-microsoft-azure,Cohere For AI,cc-by-nc-4.0,84.10%,86.74%,82.91%,89.75%,64.00%,66.00%,88.50%,82.00%,83.00%,92.94%,97.00%,87.14%,90.00%,84.00%,80.00%,54.17%,N/A,N/A,N/A,N/A
|
22 |
-
21,80.47%,Command-R-Plus (Prompt) (Original),https://txt.cohere.com/command-r-plus-microsoft-azure,Cohere For AI,cc-by-nc-4.0,84.34%,86.24%,82.36%,89.75%,62.00%,64.00%,90.00%,81.00%,84.00%,92.94%,98.00%,85.71%,88.00%,84.00%,80.00%,53.75%,1.9,1.31,0.95,3.26
|
23 |
-
22,80.00%,GPT-4o-2024-05-13 (Prompt),https://openai.com/index/hello-gpt-4o/,OpenAI,Proprietary,76.74%,77.62%,83.45%,90.75%,61.00%,70.00%,84.00%,78.50%,61.00%,90.00%,95.00%,82.86%,78.00%,70.00%,72.50%,82.50%,2.68,1.14,0.78,2.66
|
24 |
-
23,79.94%,Functionary-Small-v2.4 (FC),https://huggingface.co/meetkai/functionary-small-v2.4,MeetKai,MIT,83.47%,76.31%,82.36%,91.75%,61.00%,50.00%,88.50%,82.00%,81.00%,78.24%,96.00%,52.86%,82.00%,80.00%,65.00%,67.92%,N/A,2.32,2.57,6.9
|
25 |
-
24,79.88%,Gemini-1.5-Flash-Preview-0514 (FC),https://deepmind.google/technologies/gemini/flash/,Google,Proprietary,81.03%,74.57%,79.64%,91.00%,51.00%,46.00%,93.50%,78.00%,73.00%,81.76%,94.00%,64.29%,90.00%,54.00%,72.50%,79.58%,0.07,1.02,0.55,1.55
|
26 |
-
25,78.88%,Command-R-Plus (FC) (Optimized),https://txt.cohere.com/command-r-plus-microsoft-azure,Cohere For AI,cc-by-nc-4.0,84.47%,77.17%,76.36%,89.75%,37.00%,48.00%,91.00%,88.50%,82.00%,81.18%,95.00%,61.43%,86.00%,74.00%,67.50%,63.75%,N/A,N/A,N/A,N/A
|
27 |
-
26,78.41%,xLAM-1b-fc-r (FC),https://huggingface.co/Salesforce/xLAM-1b-fc-r,Salesforce,cc-by-nc-4.0,80.41%,82.27%,81.64%,88.50%,63.00%,64.00%,87.50%,78.50%,74.00%,80.59%,99.00%,54.29%,92.00%,84.00%,72.50%,62.50%,N/A,N/A,N/A,N/A
|
28 |
-
27,77.53%,Claude-3-Opus-20240229 (FC tools-2024-04-04),https://www.anthropic.com/news/claude-3-family,Anthropic,Proprietary,73.50%,71.27%,82.00%,89.50%,62.00%,62.00%,91.50%,58.50%,62.00%,90.59%,97.00%,81.43%,94.00%,38.00%,62.50%,82.50%,31.3,13.01,4.13,20.66
|
29 |
-
28,76.65%,Claude-instant-1.2 (Prompt),https://www.anthropic.com/news/releasing-claude-instant-1-2,Anthropic,Proprietary,79.41%,77.93%,79.64%,87.00%,60.00%,60.00%,85.50%,83.00%,69.50%,84.71%,94.00%,71.43%,80.00%,82.00%,65.00%,57.50%,0.45,1.19,0.7,2.21
|
30 |
-
29,76.29%,Claude-3.5-Sonnet-20240620 (FC),https://www.anthropic.com/news/claude-3-5-sonnet,Anthropic,Proprietary,72.56%,59.51%,84.73%,91.50%,66.00%,68.00%,92.00%,59.00%,54.50%,97.06%,98.00%,95.71%,88.00%,18.00%,35.00%,78.33%,4.74,3.63,2.88,7.64
|
31 |
-
30,75.41%,Functionary-Medium-v2.4 (FC),https://huggingface.co/meetkai/functionary-medium-v2.4,MeetKai,MIT,81.62%,75.71%,64.00%,88.00%,0.00%,0.00%,90.50%,87.50%,84.50%,68.82%,85.00%,45.71%,84.00%,80.00%,70.00%,74.17%,N/A,4.03,6.03,20.39
|
32 |
-
31,74.65%,Claude-3-Haiku-20240307 (Prompt),https://www.anthropic.com/news/claude-3-family,Anthropic,Proprietary,79.45%,70.49%,85.82%,93.50%,62.00%,72.00%,91.50%,84.50%,56.00%,92.94%,100.00%,82.86%,94.00%,70.00%,25.00%,34.58%,0.18,1.0,0.5,1.72
|
33 |
-
32,73.12%,Hermes-2-Pro-Llama-3-70B (FC),https://huggingface.co/NousResearch/Hermes-2-Pro-Llama-3-70B,NousResearch,apache-2.0,77.60%,71.15%,80.91%,92.00%,54.00%,46.00%,81.00%,74.00%,74.50%,74.12%,87.00%,55.71%,74.00%,64.00%,72.50%,47.92%,2.45,0.4,N/A,N/A
|
34 |
-
33,71.76%,Claude-2.1 (Prompt),https://www.anthropic.com/news/claude-2-1,Anthropic,Proprietary,66.40%,62.17%,81.09%,88.75%,57.00%,68.00%,76.00%,55.50%,53.00%,71.18%,90.00%,44.29%,84.00%,46.00%,47.50%,83.33%,4.81,3.19,2.16,7.38
|
35 |
-
34,71.24%,Hermes-2-Pro-Llama-3-8B (FC),https://huggingface.co/NousResearch/Hermes-2-Pro-Llama-3-8B,NousResearch,apache-2.0,77.62%,70.08%,80.00%,89.00%,58.00%,52.00%,90.50%,73.50%,66.50%,78.82%,97.00%,52.86%,92.00%,62.00%,47.50%,33.33%,0.31,0.05,N/A,N/A
|
36 |
-
35,71.00%,Command-R-Plus (FC) (Original),https://txt.cohere.com/command-r-plus-microsoft-azure,Cohere For AI,cc-by-nc-4.0,80.82%,73.19%,75.27%,84.50%,51.00%,50.00%,90.00%,82.00%,76.00%,81.76%,92.00%,67.14%,88.00%,68.00%,55.00%,24.17%,1.17,2.07,1.65,4.17
|
37 |
-
36,70.12%,Hermes-2-Theta-Llama-3-8B (FC),https://huggingface.co/NousResearch/Hermes-2-Theta-Llama-3-8B,NousResearch,apache-2.0,76.24%,69.59%,79.45%,88.75%,56.00%,52.00%,89.00%,67.00%,69.50%,82.35%,98.00%,60.00%,92.00%,44.00%,60.00%,30.00%,0.24,0.04,N/A,N/A
|
38 |
-
37,68.82%,Mistral-large-2402 (FC Auto),https://docs.mistral.ai/guides/model-selection/,Mistral AI,Proprietary,64.77%,60.01%,67.09%,89.50%,5.00%,12.00%,94.50%,25.50%,72.00%,83.53%,99.00%,61.43%,96.00%,8.00%,52.50%,84.17%,2.49,3.06,3.1,8.94
|
39 |
-
38,68.29%,Nexusflow-Raven-v2 (FC),https://huggingface.co/Nexusflow/NexusRaven-V2-13B,Nexusflow,Apache 2.0,66.88%,73.89%,76.00%,80.75%,61.00%,68.00%,86.00%,44.50%,61.00%,67.06%,95.00%,27.14%,92.00%,74.00%,62.50%,57.50%,N/A,2.01,1.26,4.48
|
40 |
-
39,67.29%,Gemini-1.0-Pro-001 (FC),https://deepmind.google/technologies/gemini/#introduction,Google,Proprietary,57.08%,56.74%,79.82%,93.00%,47.00%,40.00%,92.50%,30.50%,25.50%,86.47%,89.00%,82.86%,84.00%,44.00%,12.50%,80.00%,0.13,1.27,0.99,3.39
|
41 |
-
40,65.35%,DBRX-Instruct (Prompt),https://www.databricks.com/blog/introducing-dbrx-new-state-art-open-llm,Databricks,Databricks Open Model,66.45%,74.92%,61.82%,75.75%,21.00%,32.00%,71.50%,72.50%,60.00%,71.18%,80.00%,58.57%,86.00%,80.00%,62.50%,55.83%,1.26,0.67,0.43,1.51
|
42 |
-
41,65.29%,Snowflake/snowflake-arctic-instruct (Prompt),https://huggingface.co/Snowflake/snowflake-arctic-instruct,Snowflake,apache-2.0,61.10%,80.04%,62.91%,67.50%,46.00%,60.00%,69.00%,59.00%,53.50%,87.65%,91.00%,82.86%,86.00%,74.00%,72.50%,59.58%,N/A,0.98,0.56,2.13
|
43 |
-
42,64.47%,Mistral-large-2402 (FC Any),https://docs.mistral.ai/guides/model-selection/,Mistral AI,Proprietary,71.50%,64.93%,82.00%,89.50%,61.00%,64.00%,93.50%,31.50%,79.00%,94.71%,95.00%,94.29%,92.00%,8.00%,65.00%,0.00%,1.97,2.07,1.31,4.9
|
44 |
-
43,64.41%,GPT-3.5-Turbo-0125 (FC),https://platform.openai.com/docs/models/gpt-3-5-turbo,OpenAI,Proprietary,75.23%,81.38%,62.91%,63.50%,60.00%,64.00%,66.00%,91.00%,81.00%,93.53%,95.00%,91.43%,80.00%,82.00%,70.00%,2.08%,0.19,1.26,0.74,2.46
|
45 |
-
44,60.76%,Mistral-small-2402 (FC Any),https://docs.mistral.ai/guides/model-selection/,Mistral AI,Proprietary,65.75%,52.62%,82.00%,90.50%,60.00%,58.00%,96.00%,39.00%,46.00%,96.47%,100.00%,91.43%,92.00%,12.00%,10.00%,0.00%,0.48,1.15,0.75,2.5
|
46 |
-
45,60.24%,Hermes-2-Pro-Mistral-7B (FC),https://huggingface.co/NousResearch/Hermes-2-Pro-Mistral-7B,NousResearch,apache-2.0,70.90%,55.62%,73.09%,81.75%,55.00%,40.00%,80.50%,67.00%,63.00%,56.47%,78.00%,25.71%,70.00%,56.00%,40.00%,10.83%,0.49,0.08,N/A,N/A
|
47 |
-
46,60.18%,Meta-Llama-3-8B-Instruct (Prompt),https://llama.meta.com/llama3,Meta,Meta Llama 3 Community,62.93%,69.95%,54.73%,58.50%,48.00%,38.00%,73.50%,59.00%,64.50%,75.29%,79.00%,70.00%,74.00%,68.00%,62.50%,43.33%,0.24,0.04,N/A,N/A
|
48 |
-
47,59.00%,Claude-3-Sonnet-20240229 (FC tools-2024-04-04),https://www.anthropic.com/news/claude-3-family,Anthropic,Proprietary,44.00%,43.32%,76.00%,86.00%,48.00%,52.00%,88.00%,6.00%,6.00%,85.29%,96.00%,70.00%,88.00%,0.00%,0.00%,81.67%,3.44,3.23,1.47,6.85
|
49 |
-
48,58.18%,FireFunction-v1 (FC),https://huggingface.co/fireworks-ai/firefunction-v1,Fireworks,Apache 2.0,44.25%,39.79%,84.00%,90.25%,61.00%,80.00%,93.00%,0.00%,0.00%,71.18%,95.00%,37.14%,88.00%,0.00%,0.00%,73.33%,N/A,1.58,1.44,4.26
|
50 |
-
49,56.29%,GLM-4-9b-Chat (FC),https://huggingface.co/THUDM/glm-4-9b-chat,THUDM,glm-4,39.78%,44.12%,67.64%,87.00%,14.00%,20.00%,91.50%,0.00%,0.00%,86.47%,90.00%,81.43%,90.00%,0.00%,0.00%,87.50%,N/A,0.13,N/A,N/A
|
51 |
-
50,54.29%,GPT-4-0613 (FC),https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo,OpenAI,Proprietary,39.75%,38.53%,66.00%,86.50%,13.00%,8.00%,93.00%,0.00%,0.00%,64.12%,95.00%,20.00%,90.00%,0.00%,0.00%,91.67%,10.29,3.51,3.37,11.24
|
52 |
-
51,53.88%,Claude-3-Haiku-20240307 (FC tools-2024-04-04),https://www.anthropic.com/news/claude-3-family,Anthropic,Proprietary,45.09%,46.79%,86.36%,95.50%,61.00%,64.00%,93.50%,0.50%,0.00%,91.18%,96.00%,84.29%,94.00%,2.00%,0.00%,20.83%,0.29,1.46,0.54,2.35
|
53 |
-
52,52.65%,Mistral-tiny-2312 (Prompt),https://docs.mistral.ai/guides/model-selection/,Mistral AI,Proprietary,49.82%,36.16%,55.27%,70.00%,22.00%,4.00%,56.50%,47.50%,40.00%,27.65%,46.00%,1.43%,20.00%,62.00%,35.00%,83.75%,0.13,1.37,1.33,3.66
|
54 |
-
53,44.00%,Gemma-7b-it (Prompt),https://blog.google/technology/developers/gemma-open-models/,Google,gemma-terms-of-use,41.43%,31.75%,42.73%,47.75%,37.00%,14.00%,48.00%,30.50%,44.50%,30.00%,44.00%,10.00%,32.00%,40.00%,25.00%,70.83%,0.37,0.06,N/A,N/A
|
55 |
-
54,42.65%,Mistral-Small-2402 (Prompt),https://docs.mistral.ai/guides/model-selection/,Mistral AI,Proprietary,41.94%,38.03%,11.27%,6.00%,21.00%,34.00%,8.00%,79.50%,69.00%,34.12%,6.00%,74.29%,20.00%,68.00%,30.00%,98.33%,0.64,1.11,0.89,2.58
|
56 |
-
55,40.12%,Deepseek-v1.5 (Prompt),https://huggingface.co/deepseek-ai/deepseek-coder-7b-instruct-v1.5,Deepseek,Deepseek License,38.22%,30.89%,38.36%,50.00%,4.00%,14.00%,49.00%,37.00%,28.50%,37.06%,38.00%,35.71%,38.00%,36.00%,12.50%,57.08%,3.24,0.53,N/A,N/A
|
57 |
-
56,23.88%,Mistral-small-2402 (FC Auto),https://docs.mistral.ai/guides/model-selection/,Mistral AI,Proprietary,2.92%,34.37%,2.18%,2.75%,1.00%,0.00%,2.50%,3.00%,4.00%,56.47%,79.00%,24.29%,70.00%,6.00%,5.00%,99.58%,0.94,3.03,1.78,6.21
|
58 |
-
57,14.88%,Hermes-2-Theta-Llama-3-70B (FC),https://huggingface.co/NousResearch/Hermes-2-Theta-Llama-3-70B,NousResearch,apache-2.0,0.44%,3.41%,1.27%,1.50%,0.00%,2.00%,0.50%,0.00%,0.00%,7.65%,6.00%,10.00%,6.00%,0.00%,0.00%,95.42%,2.57,0.42,N/A,N/A
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
index.html
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
|
4 |
+
<head>
|
5 |
+
<meta charset="utf-8" />
|
6 |
+
<meta name="viewport" content="width=device-width" />
|
7 |
+
<title>Berkeley Function-Calling Leaderboard (BFCL)</title>
|
8 |
+
<style>
|
9 |
+
body {
|
10 |
+
margin: 0;
|
11 |
+
}
|
12 |
+
.fullframe {
|
13 |
+
max-width: 100%;
|
14 |
+
max-height: 100%;
|
15 |
+
width: 100vw;
|
16 |
+
height: 100vh;
|
17 |
+
overflow: hidden;
|
18 |
+
}
|
19 |
+
.iframe-element {
|
20 |
+
min-width: 100%;
|
21 |
+
min-height: 100%;
|
22 |
+
}
|
23 |
+
</style>
|
24 |
+
</head>
|
25 |
+
|
26 |
+
<body>
|
27 |
+
<div class="fullframe">
|
28 |
+
<iframe class="iframe-element" allowfullscreen="true" frameborder="0" src="https://gorilla.cs.berkeley.edu/leaderboard.html">
|
29 |
+
</iframe>
|
30 |
+
</div>
|
31 |
+
</body>
|
32 |
+
|
33 |
+
</html>
|
requirements.txt
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
openai==1.11.1
|
2 |
-
pandas==2.2.1
|
3 |
-
mistralai==0.1.3
|
|
|
|
|
|
|
|