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

台版米蘭達的創業&職場筆記: 我的第一份工作:今天的壞遭遇,明天的好故事

台版米蘭達的創業&職場筆記: 我的第一份工作:今天的壞遭遇,明天的好故事: 相信多數人對自己的第一份工作印象應該很深刻,我也不例外。 其中一段我永遠不會忘記的經歷,就是剛開始工作後所負責的第一個專案──坎城唱片展的參展籌劃及品牌設計。 「超屌的,才剛出社會就能飛到法國去參與這麼有趣的專案!」相信這應該是很多人聽到這件事的第一反應。 ...

沒有留言:

張貼留言