Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Our own Tools struct #5

Merged
merged 7 commits into from
Feb 28, 2025
Merged

Our own Tools struct #5

merged 7 commits into from
Feb 28, 2025

Conversation

myobie
Copy link
Member

@myobie myobie commented Feb 26, 2025

This should make it easier to specify tools.


let expectedTool1 = WeatherTool.getCurrentWeather(.init(
location: "Paris, France",
unit: .celsius
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@myobie Interestingly, Qwen 2.5 7B usually seems to return Celsius for this question. Granted, it makes sense because France uses Celsius. The smaller version of this model usually returns Fahrenheit, though, maybe because it's not smart enough to think about what measurement people in the city being asked about uses. Of course, that's just a guess.

"role": "system",
"content": "You are weather fetching assistant. Your only purpose is to fetch weather data.",
],
["role": "system", "content": "The user prefers F°."],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@myobie I swapped Fahrenheit for Celsius here just to see if 7B listens to us. It seems to most of the time.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@atdrendel atdrendel marked this pull request as ready for review February 28, 2025 13:55
@atdrendel atdrendel merged commit c3d3717 into main Feb 28, 2025
1 check passed
@atdrendel atdrendel deleted the tools branch February 28, 2025 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants