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: 台版米蘭達的創業&職場筆記: 【當個職場詩人】戴上3副不同的「眼鏡」看世界 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日 星期日

台版米蘭達的創業&職場筆記: 【當個職場詩人】戴上3副不同的「眼鏡」看世界

台版米蘭達的創業&職場筆記: 【當個職場詩人】戴上3副不同的「眼鏡」看世界: 最近開始用鋼筆寫字,讓我想起自己雖然因為一連串的因緣際會走上創業這條路,但其實從懂事以來,一直到高中畢業以前,我的志願一直是「詩人」。 「你可以當個職場的詩人!」我的說故事大師朋友偶然聽說這個幼時的志願,毫不考慮地說。這句話可能是他的直覺反應,但卻引發我許多思考。 ...


沒有留言:

張貼留言