OpenInterpreter / open-interpreter

A natural language interface for computers
http://openinterpreter.com/
GNU Affero General Public License v3.0
52.44k stars 4.63k forks source link

Update llm.py to use litellm.support_function_calling() #1215

Closed Notnaton closed 5 months ago

Notnaton commented 5 months ago

Using litellm.supports_function_calling to check if model supports function calling if function calling is not specified.

Describe the changes you have made:

Reference any relevant issues (e.g. "Fixes #000"):

Pre-Submission Checklist (optional but appreciated):

OS Tests (optional but appreciated):

KillianLucas commented 5 months ago

Oh that's awesome. Didn't know they made that, thanks for finding and implementing that @Notnaton! Waaay better function calling guessing logic. Merging!