-
Notifications
You must be signed in to change notification settings - Fork 179
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
feat: add ai.anthropic_list_models #386
Conversation
@@ -16,3 +17,13 @@ def make_client( | |||
if max_retries is not None: | |||
args["max_retries"] = max_retries | |||
return Anthropic(api_key=api_key, base_url=base_url, **args) | |||
|
|||
|
|||
def list_models( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasn't sure if it'd be better to have this python function that gets called (similar to openai) or have it be inline in the sql file (similar to ollama). 🤷
I think the nice thing is maybe that python tooling is a bit more universal for python files vs embedded python in SQL files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the nice thing is maybe that python tooling is a bit more universal for python files vs embedded python in SQL files.
Yeah, I think so too. This is fine IMO.
221aa69
to
088ba55
Compare
Signed-off-by: Matthew Peveler <[email protected]>
088ba55
to
1938e5a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One tiny typing thing otherwise lgtm!
a5efff0
to
84d0b42
Compare
Co-authored-by: John Pruitt <[email protected]> Signed-off-by: Matthew Peveler <[email protected]>
84d0b42
to
aa43c92
Compare
PR implements the
ai.anthropic_list_models
function, which currently returns columns(id, name, created)
which gives: