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日 星期日

台版米蘭達的創業&職場筆記: 為什麼同事沒把我這個主管放在眼裡?因為你沒有把他們放在心裡

台版米蘭達的創業&職場筆記: 為什麼同事沒把我這個主管放在眼裡?因為你沒有把他們放在心裡: 「為什麼這個客戶開會習慣遲到,您卻仍然堅持提早十分鐘到?」 某次客戶會議前有位年輕同事提出這個問題,他想知道這個客戶對公司業績的貢獻度是不是很大?不然我怎麼在明明第二天有大活動,而且客戶有80%遲到的可能性的前提下,卻依然催著整個團隊提早出門? 這位剛加入公司不久...

沒有留言:

張貼留言