歡迎來到(三貂嶺商店),瑞芳區魚寮路51號, Xinbei, Taiwan
把愛傳出去
維持平價
找尋真正的古早味美食
黑糖梅漬真的好有料?
祝你有個美好的一天! 健康是最好的禮物eggoil蛋黃油 https://nectw721.com
fetch('https://openrouter.ai/api/v1/chat/completions', { method: 'POST', headers: { Authorization: 'Bearer
fetch('https://openrouter.ai/api/v1/chat/completions', {
method: 'POST',
headers: {
Authorization: 'Bearer OPENROUTER_API_KEY',
'HTTP-Referer': 'YOUR_SITE_URL',
'X-Title': 'YOUR_SITE_NAME',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'openai/gpt-4o',
messages: [
{
role: 'user',
content: 'What is the meaning of life?',
},
],
}),
});
from openrouter import OpenRouter
import os
with OpenRouter(api_key=os.getenv("OPENROUTER_API_KEY")) as client:
response = client.chat.send(
model="~openai/gpt-sol-latest",
messages=[
{"role": "user", "content": "What is the meaning of life?"}
],
)
print(response.choices[0].message.content)
沒有留言:
張貼留言