-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix image model parsers issue for output type not being correct (#739)
Fix image model parsers issue for output type not being correct I made this mistake when editing the outputs in image output format (initially in #608, but actual mistake came in #637). It's becuase I set this as Output TYPE (`OutputDataWithValue`), not Output CLASS (`OutputDataWithStringValue`) This highlights the need for: 1. Better automated tests. We currently have `load()` and `serialize()`, but not for run: #294 . I thought this was pretty simple change so didn't manually test ## Test Plan Follow dev README to setup the local editor: https://github.com/lastmile-ai/aiconfig/tree/main/python/src/aiconfig/editor#dev, then run this command (or just do it manually with local editor) ``` curl http://localhost:8080/api/run -d '{"prompt_name":"get_activities"}' -X POST -H 'Content-Type: application/json' ``` | Before | After | |--|--| | <img width="1920" alt="Screenshot 2024-01-03 at 15 18 14" src="https://github.com/lastmile-ai/aiconfig/assets/151060367/0a6b9345-60bb-475a-a85f-44981e028b21"> | <img width="1920" alt="Screenshot 2024-01-03 at 15 16 35" src="https://github.com/lastmile-ai/aiconfig/assets/151060367/428aafe1-79a0-49fc-85ee-621a78eacd04"> | --- Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/lastmile-ai/aiconfig/pull/739). * __->__ #739 * #737
- Loading branch information
Showing
6 changed files
with
35 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters