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

台版米蘭達的創業&職場筆記: 【創業者的職場瑜珈術】讓我每天都成為比昨天更好的自己

台版米蘭達的創業&職場筆記: 【創業者的職場瑜珈術】讓我每天都成為比昨天更好的自己: 「加油!放開手,你可以的!」在教練連續好幾天軟硬兼施的信心喊話下,我終於放開死抓住游泳池邊緣的手,全身顫抖地做出了變形的「水母漂」。 開始游泳是為了要告訴自己「我可以」。 學會游泳的那一年,我二十三歲。初入社會的我對於日理萬機、隨時需要產生觀點、有創意...

沒有留言:

張貼留言