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: 台版米蘭達的創業&職場筆記: 解決問題的能力怎麼養成?遇到挑戰 想像自己被丟在「Sink or Swim」的大海裡就對了 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日 星期日

台版米蘭達的創業&職場筆記: 解決問題的能力怎麼養成?遇到挑戰 想像自己被丟在「Sink or Swim」的大海裡就對了

台版米蘭達的創業&職場筆記: 解決問題的能力怎麼養成?遇到挑戰 想像自己被丟在「Sink or Swim」的大海裡就對了: 在創業以前,我絕大多數是待在步調快速且一人當五人用的外商公司,公司的文化,多半強調個人表現、論功行賞,也因此當新人加入這個新環境時,非但不會得到特別的協助,公司甚至會特意指派最艱難的任務,來測試這個人的能耐。 這樣的「 Sink or Swim 」文化很像把不會游泳的人丟進...

沒有留言:

張貼留言