Skip to content

feat(py/genkit): added the resolve_method for openai compatible plugin #3055

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

hendrixmar
Copy link
Contributor

Description:

This PR introduces the concrete implementation of the resolve_method for the OpenAI compat plugin.

@hendrixmar hendrixmar requested a review from pavelgj as a code owner June 10, 2025 19:17
@github-actions github-actions bot added feature New feature or request python Python labels Jun 10, 2025
@AbeJLazaro
Copy link
Contributor

Let's check if it is required to keep using the handler. I think the model generate method is enough, and the handler is only a wrapper to determine which models are valid based on the supported models variable. We are going to deprecate those validations, so maybe the handler is not required.

@hendrixmar hendrixmar force-pushed the hendrixmar/feature/add_resolve_action_openai_compat branch from 7792386 to e0d8647 Compare June 13, 2025 17:31
@AbeJLazaro AbeJLazaro enabled auto-merge (squash) June 16, 2025 14:48
metadata={
'model': {
'label': f"OpenAI - {name}",
'supports': {'multiturn': True}
Copy link
Collaborator

Choose a reason for hiding this comment

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

you probably want to add other supports fields as well.. like system prompt?

Copy link
Contributor

Choose a reason for hiding this comment

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

we saw that the initializate method only add the multiturn field in the metadata field. Should we change both methods to add all the supports object in the metadata?

image

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes. A shared constant would be great.

@AbeJLazaro AbeJLazaro requested a review from pavelgj June 16, 2025 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants