-
Notifications
You must be signed in to change notification settings - Fork 78
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
Argument of type 'Metadata' is not assignable to parameter of type 'BrowserHeaders'. #62
Comments
the full code : export const generateImage = functions.https.onRequest((request, response) => { // Set up image parameters // Use the // Use Stable Diffusion 2.0 // Use a CFG scale of const stepParams = new Generation.StepParameter(); // Set the schedule to imageParams.addParameters(stepParams); // Set our text prompt generationRequest.addPrompt(promptText); // Authenticate using your API key, don't commit your key to a public repository! const metadata = new grpc.Metadata(); // Create a generation client // Send the request using the // Set up a callback to handle data being returned
}); // Anything other than function someFunctionToCallWhenFinished( base64Image: string) { |
You need to change the grpc you import in the header to |
I'm using the typescript client guide and then
this error appear
The text was updated successfully, but these errors were encountered: