different-ai / obsidian-ava

Quickly format your notes with ChatGPT in Obsidian
https://app.anotherai.co
MIT License
650 stars 19 forks source link

Stable Diffusion not working. Error in console #18

Closed limex closed 1 year ago

limex commented 1 year ago

Hi,

I added these values to Settings: image

When I press "Save", I noticed this error in the console: image

When I select a text and use "Generate an image based on selected text" nothing happens.

Any ideas?

sudheer82 commented 1 year ago

I was facing a similar issue and reported here https://github.com/louis030195/obsidian-ava/issues/12

When tried with the latest obsidian-ava release, i can confirm i am facing the same error as @limex posted above. Nothing happens when we try use "Generate an image based on selected text"

limex commented 1 year ago

Inspired by @sudheer82 Comments I like to add:

louis030195 commented 1 year ago

I think Stability AI changed their API or something like that - kinda hard to reach any kind of documentation beyond their protos

generation_pb.js:1150 Uncaught TypeError: reader.skipField is not a function
    at proto.gooseai.Artifact.deserializeBinaryFromReader (generation_pb.js:1150:14)
    at B.Aa (google-protobuf.js:23:209)
    at Function.proto.gooseai.Answer.deserializeBinaryFromReader (generation_pb.js:6515:14)
    at Function.proto.gooseai.Answer.deserializeBinary (generation_pb.js:6474:31)
    at eval (grpc-web-client.umd.js:1:9605)
    at Array.forEach (<anonymous>)
    at e3.onTransportChunk (grpc-web-client.umd.js:1:9508)
    at IncomingMessage.eval (index.ts:40:20)
    at IncomingMessage.emit (node:events:390:28)
    at addChunk (node:internal/streams/readable:315:12)
louis030195 commented 1 year ago

nvm it works

image
louis030195 commented 1 year ago

LMK if the last release solve the problem

limex commented 1 year ago

Works for me. Thanks. Case closed :)