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: Tweeted V​i​a​⇒https://t.co/gDIHA3OCXU #TEAMFOLLOWBACK #FF #AUTOFOLLOW #OPENFOLLOW #RT #AUTOFOLLOWBACK #FOLLOWME twcctz500 http://twitter.com/twcctz500/status/1136417525217054725 June 06, 2019 at 07:40AM V​i​a​⇒http://bit.ly/2XtsAfN #FF #AUTOFOLLOW #OPENFOLLOW #RT #AUTOFOLLOWBACK #FOLLOWME — Chang Hsien Liu (@twcctz500) June 5, 2019 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?', }, ], }), });

2019年6月6日 星期四

Tweeted V​i​a​⇒https://t.co/gDIHA3OCXU #TEAMFOLLOWBACK #FF #AUTOFOLLOW #OPENFOLLOW #RT #AUTOFOLLOWBACK #FOLLOWME twcctz500 http://twitter.com/twcctz500/status/1136417525217054725 June 06, 2019 at 07:40AM V​i​a​⇒http://bit.ly/2XtsAfN #FF #AUTOFOLLOW #OPENFOLLOW #RT #AUTOFOLLOWBACK #FOLLOWME — Chang Hsien Liu (@twcctz500) June 5, 2019


http://bit.ly/2MwTlz1
For more interesting stories & photos, or sample of Architecture portfolio and illustration and my project archives, please visit my website at Hon Wong Architecture Portfolio
http://wonghon.com

沒有留言:

張貼留言