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: 台版米蘭達的創業&職場筆記: 創業必修課:學習割捨──讓不合適的人離開,就算要「砍掉重練」也值得 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日 星期日

台版米蘭達的創業&職場筆記: 創業必修課:學習割捨──讓不合適的人離開,就算要「砍掉重練」也值得

台版米蘭達的創業&職場筆記: 創業必修課:學習割捨──讓不合適的人離開,就算要「砍掉重練」也值得:  " Please consider this email as my resignation…my last day will be…" 剛過完週末假期,用手機快速瀏覽著數十封過去幾個小時收到的電子郵件,其中有一封以「 resignation 」為標題的郵...

沒有留言:

張貼留言