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) 4健康主播鄭凱云 https://www.youtube.com/@health_2.0: 台版米蘭達的創業&職場筆記: 我應該創業嗎?只要做好24小時全年無休的準備,放手一搏又何妨? 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?', }, ], }), });

2023年10月22日 星期日

台版米蘭達的創業&職場筆記: 我應該創業嗎?只要做好24小時全年無休的準備,放手一搏又何妨?

台版米蘭達的創業&職場筆記: 我應該創業嗎?只要做好24小時全年無休的準備,放手一搏又何妨?: 「 2013 is a fruitful year to me !」這是某個夜晚,以慶祝我驚險度過創業第一年為名目的私人晚宴上,邊欣賞台北夜景,邊品嚐著紅酒時,我為這一年下的總結。當時剛度過創業維艱的第一年,公司的營運終於比較上軌道,大家都為我感到高興,因此耳邊祝賀聲不斷,...









沒有留言:

張貼留言