Code Monkey home page Code Monkey logo

horde-sdk's People

Contributors

db0 avatar dependabot[bot] avatar tazlin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

horde-sdk's Issues

Documentation: Swagger example for "async" endpoint needs to switch name fields between "loras" and "tis".

From what I'm understanding on how CivitAI's API response is, lora.id is a number (which should be casted to a string when sending to the Horde), while ti.id is a string.

Screenshot 2024-01-15 at 9 20 47 AM

TLDR; GlowingRunesAIV6 is a TI and should be moved under the TI array.

I'm considering opening a PR myself, but my Python foo isn't super solid.

It looks like it's mentioned in a number of places here:
https://github.com/search?q=org%3AHaidra-Org%20GlowingRunesAIV6&type=code

Dynamically validate error responses too

As of Haidra-Org/AI-Horde@5c5d3dd, there should be enough information in the swagger to dynamically valid error responses. write_all_response_examples_to_file in swagger.py already has a bool keyword argument error_responses which will write out all of the published error responses to json for pytest/CI.

Some thoughts:

  • The API is missing some possible HTTP return codes for errors (this is often because nested function calls can make it difficult to determine which exceptions might be raised and changes to shared functions make it hard to identify which endpoints to decorate with the possible new return codes).
  • As of today, all of the example errors are identical. It may or may not serve us to include examples which vary from endpoint to endpoint (or at least, vary at all).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.