You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> -`--approach proxy` flag: Not supported in command-line interface
80
-
> -`extra_body` method: Currently broken due to parsing bug in server code
87
+
Both methods will:
88
+
- Route to one of your configured providers
89
+
- Apply model mapping if configured
90
+
- Handle failover automatically
81
91
82
92
#### Combined Approaches
83
93
```bash
@@ -90,7 +100,20 @@ curl -X POST http://localhost:8000/v1/chat/completions \
90
100
}'
91
101
```
92
102
93
-
> **Note**: The proxy wrapping functionality (`proxy_wrap`) is currently not accessible via the working model prefix method. This would require the `extra_body` approach which is currently broken.
103
+
#### Proxy Wrapping Other Approaches
104
+
```bash
105
+
# Use proxy to wrap MOA approach
106
+
curl -X POST http://localhost:8000/v1/chat/completions \
107
+
-H "Content-Type: application/json" \
108
+
-d '{
109
+
"model": "gpt-4",
110
+
"messages": [{"role": "user", "content": "Solve this problem"}],
111
+
"extra_body": {
112
+
"optillm_approach": "proxy",
113
+
"proxy_wrap": "moa"
114
+
}
115
+
}'
116
+
```
94
117
95
118
## Configuration Reference
96
119
@@ -314,11 +337,30 @@ client = OpenAI(
314
337
api_key="dummy" # Can be any string when using proxy
315
338
)
316
339
317
-
# Use proxy with model prefix (currently the only working method)
0 commit comments