mukaist commited on
Commit
59db38e
·
verified ·
1 Parent(s): b0191c7

Update pipeline.json

Browse files
Files changed (1) hide show
  1. pipeline.json +14 -0
pipeline.json CHANGED
@@ -15,6 +15,20 @@
15
  }
16
  },
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  "Phi-3.5-mini-instruct": {
19
  "type": "Text Generation",
20
  "api_url": "https://api-inference.huggingface.co/models/microsoft/Phi-3.5-mini-instruct/v1/chat/completions",
 
15
  }
16
  },
17
 
18
+ "phi-4": {
19
+ "type": "image-text-to-text",
20
+ "api_url": "https://api-inference.huggingface.co/models/microsoft/phi-4/v1/chat/completions",
21
+ "headers": {
22
+ "Content-Type": "application/json",
23
+ "x-use-cache": "false",
24
+ "config": {
25
+ "comment": "This section runs Python code. It retrieves the API key from your environment using 'os'. You can use this for Authorization headers or replace it with another type of headers, like 'ApiKey'.",
26
+ "Authorization": "Bearer os.environ.get('auth')"
27
+ }
28
+ }
29
+ },
30
+
31
+
32
  "Phi-3.5-mini-instruct": {
33
  "type": "Text Generation",
34
  "api_url": "https://api-inference.huggingface.co/models/microsoft/Phi-3.5-mini-instruct/v1/chat/completions",