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

Spec #303

Open
elijah629 opened this issue Sep 17, 2023 · 6 comments
Open

Spec #303

elijah629 opened this issue Sep 17, 2023 · 6 comments

Comments

@elijah629
Copy link

Hello, I am re-implementing the bridge in Rust. Is there any spec for the bridge? Like what does it HAVE to implement for it to connect to the horde and fulfill requests.

@elijah629
Copy link
Author

I do see the API spec but there is no clear path of what to do in what order

@db0
Copy link
Member

db0 commented Sep 17, 2023

Roughly,

  1. request the /pop endpoint for the required operation (image, text, or alchemy)
  2. process the payload returned by the pop with your inference worker. If you worker does not consume the payload as-is, ensure to convert it to what they need
  3. If successful, submit the generation to the /submit endpoint for the required operation (image, text, or alchemy)
  4. If faulted, submit a faulted result to the /submit enpoint

@db0
Copy link
Member

db0 commented Sep 17, 2023

You can join us on discord to directly talk to the devs

@elijah629
Copy link
Author

Oh I didn't see a discord, thanks!

@elijah629
Copy link
Author

Is the Auth just an apikey header and not HTTP Auth? It seems like it is but this is so off of any standard I have to question it.

@db0
Copy link
Member

db0 commented Sep 18, 2023

it's in the header, yes

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

No branches or pull requests

2 participants