arboreal-ai
/
cog-nexusraven-v2-13b
- Public
- 11 runs
Run arboreal-ai/cog-nexusraven-v2-13b with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
prompt_template |
string
|
Function:
def get_weather_data(coordinates):
"""
Fetches weather data from the Open-Meteo API for the given latitude and longitude.
Args:
coordinates (tuple): The latitude of the location.
Returns:
float: The current temperature in the coordinates you've asked for
"""
Function:
def get_coordinates_from_city(city_name):
"""
Fetches the latitude and longitude of a given city name using the Maps.co Geocoding API.
Args:
city_name (str): The name of the city.
Returns:
tuple: The latitude and longitude of the city.
"""
User Query: {query}<human_end>
|
Prompt template to use for generating the output
|
query |
string
|
What's the weather like in Seattle right now?
|
User query to generate function calls for
|
max_new_tokens |
integer
|
2048
Min: 1 Max: 4096 |
Number of new tokens
|
{
"type": "object",
"title": "Input",
"properties": {
"query": {
"type": "string",
"title": "Query",
"default": "What's the weather like in Seattle right now?",
"x-order": 1,
"description": "User query to generate function calls for"
},
"max_new_tokens": {
"type": "integer",
"title": "Max New Tokens",
"default": 2048,
"maximum": 4096,
"minimum": 1,
"x-order": 2,
"description": "Number of new tokens"
},
"prompt_template": {
"type": "string",
"title": "Prompt Template",
"default": "\nFunction:\ndef get_weather_data(coordinates):\n \"\"\"\n Fetches weather data from the Open-Meteo API for the given latitude and longitude.\n\n Args:\n coordinates (tuple): The latitude of the location.\n\n Returns:\n float: The current temperature in the coordinates you've asked for\n \"\"\"\nFunction:\ndef get_coordinates_from_city(city_name):\n \"\"\"\n Fetches the latitude and longitude of a given city name using the Maps.co Geocoding API.\n\n Args:\n city_name (str): The name of the city.\n\n Returns:\n tuple: The latitude and longitude of the city.\n \"\"\"\nUser Query: {query}<human_end>\n",
"x-order": 0,
"description": "Prompt template to use for generating the output"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output"
}