curl -XPOST"https://optimushumanoid.net/api/v1/chat/completions"-H"Authorization: Bearer $ROBOTTSL_API_KEY"-H"Content-Type: application/json"-d '{
"model": "Qwen/Qwen2.5-7B-Instruct-Turbo",
"messages": [{"role": "user", "content": "What are some fun things to do in New York?"}]
}'
JSON RESPONSE
RUN INFERENCE
from robottsl import RobotTSL client = RobotTSL()
response = client.chat.completions.create(
model="Qwen/Qwen2.5-7B-Instruct-Turbo",
messages=[{"role": "user", "content": "What are some fun things to do in New York?"}], ) print(response.choices[0].message.content)
JSON RESPONSE
RUN INFERENCE
importRobotTSLfrom"ai-tradestore"; const robottsl = newRobotTSL(); const response = await robottsl.chat.completions.create({
messages: [{"role": "user", "content": "What are some fun things to do in New York?"}],
model: "Qwen/Qwen2.5-7B-Instruct-Turbo", });
console.log(response.choices[0].message.content)