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

Pull Imagen feature #285

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

Pull Imagen feature #285

wants to merge 3 commits into from

Conversation

junyanxu
Copy link
Collaborator

@junyanxu junyanxu commented Oct 18, 2024

I messed up the old branch after doing a merge. Create this new branch for us to keep reviewing.

I have resolved all comments except one from @hsubox76

The ...request will cause testing error like this, because original request has more parameters than parameters could accept. And in new predict api the parameters are not typed.

      AssertionError: expected { model: 'test_model', …(2) } to deeply equal { …(3) }
      + expected - actual

         "parameters": {
           "aspectRatio": "1:1"
           "compressionQuality": 12
           "guidanceScale": 5
      -    "height": 1024
           "language": "ko"
           "negativePrompt": "Not a dog"
      -    "numberOfImages": 1
           "outputMimeType": "image/png"
      -    "prompt": "Create a cat"
           "safetyFilterLevel": "block_medium_and_above"
           "sampleCount": 1
           "sampleImageSize": 1024
      -    "width": 512
         }
       }
      

Related to #276

@@ -448,6 +448,13 @@ export interface GenerateContentStreamResult {
stream: AsyncGenerator<EnhancedGenerateContentResponse>;
}

// @public
export interface GeneratedImage {
// Warning: (ae-forgotten-export) The symbol "PredictServiceValueType" needs to be exported by the entry point index.d.ts
Copy link
Collaborator

Choose a reason for hiding this comment

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

Check this file for comments telling you what's still missing in the exported types.

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