You have to use VimScript to write the omnifunc, but get to use Python to write for the Completer API; this by itself should make you want to use the API. The Completer API is a much more powerful way to integrate with YCM and it provides a wider set of features. For instance, ...
API Support for dedicated inpainting model by RunwayML via extension: Aesthetic Gradients, a way to generate images with a specific aesthetic by using clip images embeds (implementation of https://github.com/vicgalle/stable-diffusion-aesthetic-gradients) Stable Diffusion 2.0 support - see wiki for ...
def api_handler(self, url, headers="", data="", method="post"): if self.req_sleep: time.sleep(random.randint(1, 3)) self.logger.info("请求api接口: %s" % url) try: if method == "post": response = requests.post(url, data, headers=headers) elif method == "get": ...