import{s as k,a as z,n as F,o as U}from"../chunks/scheduler.a045fce0.js";import{S as j,i as B,e as p,s as c,c as I,h as G,a as h,d as a,b as f,f as A,g as C,j as M,k as g,q as S,l as O,m as r,n as R,t as T,o as q,p as L}from"../chunks/index.c7f31426.js";import{H as D,E as J}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.16774317.js";function K(v){let s,d,u,_,o,$,i,E=`Inference Endpoints can be used through the <a href="https://endpoints.huggingface.co/endpoints" rel="nofollow">UI</a> and programmatically through an API.
Here you’ll find the <a href="https://api.endpoints.huggingface.cloud/" rel="nofollow">open-API specification</a> for each available route, which you can call directly,
or through the <a href="https://huggingface.co/docs/huggingface_hub/guides/inference_endpoints" rel="nofollow">Hugging Face Hub python client</a>.`,b,n,x="Browser not compatible.",H,w,l,y,m,P;return o=new D({props:{title:"API Reference (Swagger)",local:"api-reference-swagger",headingTag:"h1"}}),l=new J({props:{source:"https://github.com/huggingface/hf-endpoints-documentation/blob/main/docs/source/api_reference.md"}}),{c(){s=p("meta"),d=c(),u=p("p"),_=c(),I(o.$$.fragment),$=c(),i=p("p"),i.innerHTML=E,b=c(),n=p("iframe"),n.textContent=x,w=c(),I(l.$$.fragment),y=c(),m=p("p"),this.h()},l(e){const t=G("svelte-u9bgzb",document.head);s=h(t,"META",{name:!0,content:!0}),t.forEach(a),d=f(e),u=h(e,"P",{}),A(u).forEach(a),_=f(e),C(o.$$.fragment,e),$=f(e),i=h(e,"P",{"data-svelte-h":!0}),M(i)!=="svelte-1b55y40"&&(i.innerHTML=E),b=f(e),n=h(e,"IFRAME",{src:!0,style:!0,frameborder:!0,id:!0,"data-svelte-h":!0}),M(n)!=="svelte-17lkzlc"&&(n.textContent=x),w=f(e),C(l.$$.fragment,e),y=f(e),m=h(e,"P",{}),A(m).forEach(a),this.h()},h(){g(s,"name","hf:doc:metadata"),g(s,"content",N),z(n.src,H="https://api.endpoints.huggingface.cloud/")||g(n,"src",H),S(n,"height","60vh"),S(n,"width","100%"),g(n,"frameborder","0"),g(n,"id","iframe")},m(e,t){O(document.head,s),r(e,d,t),r(e,u,t),r(e,_,t),R(o,e,t),r(e,$,t),r(e,i,t),r(e,b,t),r(e,n,t),r(e,w,t),R(l,e,t),r(e,y,t),r(e,m,t),P=!0},p:F,i(e){P||(T(o.$$.fragment,e),T(l.$$.fragment,e),P=!0)},o(e){q(o.$$.fragment,e),q(l.$$.fragment,e),P=!1},d(e){e&&(a(d),a(u),a(_),a($),a(i),a(b),a(n),a(w),a(y),a(m)),a(s),L(o,e),L(l,e)}}}const N='{"title":"API Reference (Swagger)","local":"api-reference-swagger","sections":[],"depth":1}';function Q(v){return U(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Y extends j{constructor(s){super(),B(this,s,Q,K,k,{})}}export{Y as component};
