Skip to content

an example of using tool calling via openrouter and tool2schema

Notifications You must be signed in to change notification settings

hriverg/openrouter-tool-calling-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tool Calling Example with OpenRouter

This program demonstrates how to use OpenAI's function calling (also known as tool calling) feature with the OpenRouter API to answer a question by using an external tool.

Usage

# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

uv venv
source .venv/bin/activate
uv pip install -r requirements.txt

uv run openrouter-tool-calling.py

About

an example of using tool calling via openrouter and tool2schema

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages