Upload byteplus_example.py with huggingface_hub
Browse files- byteplus_example.py +8 -0
byteplus_example.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from litellm import completion
|
| 2 |
+
|
| 3 |
+
res = completion(
|
| 4 |
+
api_key="d6c8d0f9-b274-4540-915e-34efc0919db9",
|
| 5 |
+
api_base="https://ark.ap-southeast.bytepluses.com/api/v3",
|
| 6 |
+
model="openai/deepseek-v3-2-251201",
|
| 7 |
+
messages=safe_messages,
|
| 8 |
+
)
|