Mateusz
Mateusz
RRunPod
Created by Mateusz on 4/17/2024 in #⚡|serverless
Running serverless endpoint locally
yes, and you can put something in this input and it can be an object, so it may be complex structure which you can define. so you could narrow input type generated currently with your type. so in the end it could be somehow "overwritten" or "extend" (you name it, it's just semantics) to have in openapi file (which is currently generated) more precise definition what intput and output are, not some generic list of every type.
29 replies
RRunPod
Created by Mateusz on 4/17/2024 in #⚡|serverless
Running serverless endpoint locally
I was just wandering if some overwriting would be possible to extend base definition, because in most cases input will have some structure defined. If don't then I understand. Thanks a lot for help!
29 replies
RRunPod
Created by Mateusz on 4/17/2024 in #⚡|serverless
Running serverless endpoint locally
why? They are still endpoints and in a team it would be nice to have openapi to share contracts automatically. you then can do some automated tests to make sure contracts are still valid. especially with proper CI/CD pipelines across the project and multiple repositories
29 replies
RRunPod
Created by Mateusz on 4/17/2024 in #⚡|serverless
Running serverless endpoint locally
yeah, I was analysing all of those workers, that's why I'm asking questions here, because I can't find answers in other places 🙂 Thanks!
29 replies
RRunPod
Created by Mateusz on 4/17/2024 in #⚡|serverless
Running serverless endpoint locally
openapi schema generation based on code. by default openapi file is generated when running serverless handler. It generates schemas and for request DefaultRequest by default. It defines input as object. When creating some custom endpoint we can make complex structures and it would be nice to put it into schema
29 replies
RRunPod
Created by Mateusz on 4/17/2024 in #⚡|serverless
Running serverless endpoint locally
@digigoblin is there a way to define types for input and output to be generated in openapi file?
29 replies
RRunPod
Created by Mateusz on 4/17/2024 in #⚡|serverless
Running serverless endpoint locally
@digigoblin thanks! in docs and arts passing value is after =, I didn't try without it, my brain didn't notice that it may be wrong. It's running when passing value without = sign
29 replies
RRunPod
Created by Mateusz on 4/15/2024 in #⚡|serverless
Modify a Serverless Template
bummer, it would be nice to have a little bit better api for CD pipelines. thanks for help!
7 replies
RRunPod
Created by Mateusz on 4/15/2024 in #⚡|serverless
Modify a Serverless Template
there are some things around restarting servers and only thing about updating template is changing amount of workers, which does not solve my problem. I could create and delete endpoints and templates, but probably it's not a greate solution.
7 replies