-
Notifications
You must be signed in to change notification settings - Fork 207
Open
Description
How to use openai-java to implement the same code as openai-python?
I have trouble with uploading Video Input with openai-java.
https://www.modelscope.cn/models/Qwen/Qwen3.5-35B-A3B
Video Input
from openai import OpenAI
# Configured by environment variables
client = OpenAI()
messages = [
{
"role": "user",
"content": [
{
"type": "video_url",
"video_url": {
"url": "https://qianwen-res.oss-accelerate.aliyuncs.com/Qwen3.5/demo/video/N1cdUjctpG8.mp4"
}
},
{
"type": "text",
"text": "How many porcelain jars were discovered in the niches located in the primary chamber of the tomb?"
}
]
}
]
response = client.chat.completions.create(
model="Qwen/Qwen3.5-35B-A3B",
messages=messages,
max_tokens=81920,
temperature=1.0,
)
print("Chat response:", chat_response)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels