mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-30 22:02:38 -08:00
15 lines
No EOL
459 B
Python
15 lines
No EOL
459 B
Python
from __future__ import annotations
|
|
|
|
from .OpenaiAPI import OpenaiAPI
|
|
from .HuggingChat import HuggingChat
|
|
|
|
class HuggingFaceAPI(OpenaiAPI):
|
|
label = "HuggingFace (Inference API)"
|
|
url = "https://api-inference.huggingface.co"
|
|
api_base = "https://api-inference.huggingface.co/v1"
|
|
working = True
|
|
default_model = "meta-llama/Llama-3.2-11B-Vision-Instruct"
|
|
default_vision_model = default_model
|
|
models = [
|
|
*HuggingChat.models
|
|
] |