(Golang) Go bindings for the Hugging Face Inference API

Similar Resources

Awb-kh-api - AWB KH API WITH GOLANG

AWB KH API Da die vorhandene API des Abfallwirtschaftsbetriebs in Bad Kreuznach

Feb 11, 2022

Go library for accessing the MyAnimeList API: http://myanimelist.net/modules.php?go=api

go-myanimelist go-myanimelist is a Go client library for accessing the MyAnimeList API. Project Status The MyAnimeList API has been stable for years a

Sep 28, 2022

Go client for the YNAB API. Unofficial. It covers 100% of the resources made available by the YNAB API.

YNAB API Go Library This is an UNOFFICIAL Go client for the YNAB API. It covers 100% of the resources made available by the YNAB API. Installation go

Oct 6, 2022

lambda-go-api-proxy makes it easy to port APIs written with Go frameworks such as Gin to AWS Lambda and Amazon API Gateway.

aws-lambda-go-api-proxy makes it easy to run Golang APIs written with frameworks such as Gin with AWS Lambda and Amazon API Gateway.

Jan 6, 2023

The NVD API is an unofficial Go wrapper around the NVD API.

NVD API The NVD API is an unofficial Go wrapper around the NVD API. Supports: CVE CPE How to use The following shows how to basically use the wrapper

Jan 7, 2023

go-whatsapp-rest-API is a Go library for the WhatsApp web which use Swagger as api interface

go-whatsapp-rest-API go-whatsapp-rest-API is a Go library for the WhatsApp web which use Swagger as api interface Multi-devices (MD) Support. This ver

Dec 15, 2022

A Wrapper Client for Google Spreadsheet API (Sheets API)

Senmai A Wrapper Client for Google Spreadsheet API (Sheets API) PREPARATION Service Account and Key File Create a service account on Google Cloud Plat

Nov 5, 2021

💾 Wolke API is the API behind Wolke image storage and processing aswell as user management

💾 Wolke API Wolke API is the API behind Wolke image storage and processing aswell as user management Deploying To deploy Wolke Bot you'll need podman

Dec 21, 2021

Upcoming mobiles api (UpMob API)

upcoming_mobiles_api (UpMob API) UpMob API scraps 91mobiles.com to get devices i

Dec 21, 2021
Comments
  • No way to specify 0 for parameters whose default is

    No way to specify 0 for parameters whose default is "None"

    Some optional parameters have a default of None, which is more akin to nil or the Pythonic None than 0. These parameters need to be made into pointers so that the unset value is nil rather than 0.

    As an example, see the ConversationalParameters MaxTime struct. https://github.com/TannerKvarfordt/hfapigo/blob/790bb2db9734e57d6d82e160195f20d1ccf20eb2/conversational.go#L57-L59

  • Multi-input, multi-mask calls to the fill_mask endpoint are not supported.

    Multi-input, multi-mask calls to the fill_mask endpoint are not supported.

    The Issue

    hfapigo calls to fill_mask endpoints do not support multi-input, multi-mask arguments. Supported arguments are multi-input or multi-mask, but not both at the same time.

    To be clear, some HuggingFace models do support these calls, but this library does not.

    For example, the following calls are supported by this library.

    // Supported
    hfapigo.SendFillMaskRequest(hfapigo.RecommendedFillMaskModel, &hfapigo.FillMaskRequest{
    	Inputs:  [
    		"The answer to life, the universe, and everything is [MASK].",
            ],
    })
    
    // Supported
    hfapigo.SendFillMaskRequest(hfapigo.RecommendedFillMaskModel, &hfapigo.FillMaskRequest{
    	Inputs:  [
    		"The answer to life, the universe, and everything is [MASK].",
    		"So long, and thanks for all the [MASK].",
            ],
    })
    
    // Supported
    hfapigo.SendFillMaskRequest(hfapigo.RecommendedFillMaskModel, &hfapigo.FillMaskRequest{
    	Inputs:  [
    		"The answer to life, the [MASK], and everything is [MASK].",
            ],
    })
    

    And the following calls are not supported by this library.

    // NOT Supported
    hfapigo.SendFillMaskRequest(hfapigo.RecommendedFillMaskModel, &hfapigo.FillMaskRequest{
    	Inputs:  [
    		"The answer to life, the [MASK], and everything is [MASK].",
                    "So [MASK] and thanks for all the [MASK]",
            ],
    })
    
    // NOT Supported
    hfapigo.SendFillMaskRequest(hfapigo.RecommendedFillMaskModel, &hfapigo.FillMaskRequest{
    	Inputs:  [
    		"The answer to life, the [MASK], and everything is [MASK].",
                    "The answer to life, the [MASK], and everything is 42.",
            ],
    })
    

    The reason these types of calls are not supported is that it quickly becomes non-trivial to deduce the structure of the response. I'm sure it is possible, but I don't foresee myself having time to work on this in the near future.

    Workaround

    If you need to make a call of this type to the API, you can build your FillMaskRequest and manually make the call to MakeHFAPIRequest, which will give you the appropriate JSON response. From there it is up to you to deduce the structure of the returned JSON and unmarshal it.

  • Feature Extraction endpoint is not well defined.

    Feature Extraction endpoint is not well defined.

    As of the initial writing of this library, the feature extraction endpoint doesn't seem to be well defined. At the moment it seems like the request structure varies from model to model. That may or may not be the case, and its likely that I just don't understand what's going on, but unfortunately I don't have the free time to expend on figuring out what's going on. I'll wait until the docs become more explicit to implement this endpoint.

    Screen Shot 2021-11-22 at 3 03 12 PM
(Golang) Go bindings for Discord

DiscordGo DiscordGo is a Go package that provides low level bindings to the Discord chat client API. DiscordGo has nearly complete support for all of

Jan 7, 2023
Simple-Weather-API - Simple weather api app created using golang and Open Weather API key
Simple-Weather-API - Simple weather api app created using golang and Open Weather API key

Simple Weather API Simple weather api app created using golang and Open Weather

Feb 6, 2022
Go bindings for libappindicator3 C library

go-appindicator Go bindings for libappindicator3 C library. Libappindicator is a library to allow applications to export a menu into the Unity Menu ba

Sep 26, 2022
An API client for the Notion API implemented in Golang

An API client for the Notion API implemented in Golang

Dec 30, 2022
A API scanner written in GOLANG to scan files recursively and look for API keys and IDs.

GO FIND APIS _____ ____ ______ _____ _ _ _____ _____ _____ _____ / ____|/ __ \ | ____|_ _| \ | | __ \ /\ | __ \_

Oct 25, 2021
Arweave-api - Arweave API implementation in golang

Arweave API Go implementation of the Arweave API Todo A list of endpoints that a

Jan 16, 2022
Reservationbox-api - Reservationbox Api with golang
Reservationbox-api - Reservationbox Api with golang

reservationbox-api How to set up application Cloning git on this link : https://

Jan 30, 2022
Go api infra - Infrastructure for making api on golang so easy

Go Infra Api Infrastructre methods and types for make api simple Response abstra

Jun 18, 2022
A GoLang wrapper for Politics & War's API. Forego the hassle of accessing the API directly!

A GoLang wrapper for Politics & War's API. Forego the hassle of accessing the API directly!

Mar 5, 2022
Golang API for Whatsapp API MultiDevice version
Golang API for Whatsapp API MultiDevice version

Go Whatsapp API Multi Device Version Required Mac OS: brew install vips export C

Jan 3, 2023