Spaces:
Running
Running
Update Authorization Fakepen Provider
Browse files
g4f/Provider/Providers/Fakeopen.py
CHANGED
@@ -22,7 +22,7 @@ def _create_completion(model: str, messages: list, stream: bool, **kwargs):
|
|
22 |
'accept': 'text/event-stream',
|
23 |
'Cache-Control': 'no-cache',
|
24 |
'Proxy-Connection': 'keep-alive',
|
25 |
-
'Authorization': f"Bearer {os.environ.get('FAKE_OPEN_KEY', '
|
26 |
}
|
27 |
|
28 |
json_data = {
|
|
|
22 |
'accept': 'text/event-stream',
|
23 |
'Cache-Control': 'no-cache',
|
24 |
'Proxy-Connection': 'keep-alive',
|
25 |
+
'Authorization': f"Bearer {os.environ.get('FAKE_OPEN_KEY', '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')}",
|
26 |
}
|
27 |
|
28 |
json_data = {
|