Skip to content

[idea] Make Inference custom requests even more generic?  #452

@radames

Description

@radames

Hi @coyotte508,

I was trying to use the @huggingface/inference custom Request/StreamingRequest as a client for Ollama (https://github.com/jmorganca/ollama/blob/main/docs/api.md#streaming-responses). It almost works, but it needs a couple of custom arguments and requires a model argument, that clashes with our internals.

This idea might be outside the scope of our client, but one could use it to consume any text streaming LLM and eventually switch between providers? wdyt?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions