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

Implements Python AI binding API test. #2007

Merged
merged 1 commit into from
Apr 17, 2024
Merged

Implements Python AI binding API test. #2007

merged 1 commit into from
Apr 17, 2024

Conversation

dom96
Copy link
Collaborator

@dom96 dom96 commented Apr 11, 2024

No description provided.

@dom96 dom96 requested review from a team as code owners April 11, 2024 09:43
# https://opensource.org/licenses/Apache-2.0

async def test(context, env):
resp = await env.ai.run('testModel', {"prompt": 'test'})
Copy link
Contributor

Choose a reason for hiding this comment

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

I would think this wouldn't work as-is because of the type conversions problems. Does the mock validate the second parameter?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, the mock doesn't validate the second parameter. It's a very simple test mock.

@dom96
Copy link
Collaborator Author

dom96 commented Apr 16, 2024

@hoodmane @garrettgu10 review/stamp appreciated

@dom96 dom96 merged commit ec539a3 into main Apr 17, 2024
10 checks passed
@dom96 dom96 deleted the dominik/python-ai-test branch April 17, 2024 09:45
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