2023年4月20日 星期四

[travel] 23 大邱 釜山 順天灣 麗水五日遊 Day1 大邱汗蒸幕 Spa Elybaden 順天灣 兩餐 麗水 Yeosu Venezia Hotel & Resort

 

4/20



=0600 出發 汗蒸幕 Spa Elybaden

+82 53-288-5000
https://maps.app.goo.gl/Sh7p1Xu6Me79rPSg6
B 甜米釀 3000






=1040 集合 出發午餐 1.5w

1100 午餐 착한한식뷔페

https://maps.app.goo.gl/erXyqg8Q5pbhTZTBA
착한한식뷔페 https://maps.app.goo.gl/erXyqg8Q5pbhTZTBA






=1150 吃完午餐出發

=1212 抵達 鄉村文化館

+82 53-219-4555
https://maps.app.goo.gl/QojF6npUnbm4kAEn7

















=1250 買完咖啡 1800*2 ice Americano

봄봄대구역점
+82 70-5541-6737
https://maps.app.goo.gl/GzHB7yAXk32w1RXQ8
=1300 出發
=1450 休息站 老母與仙姑喝咖啡 9700

=1507 出發順天灣國家公園 順天灣國家庭園

+82 61-749-3114

https://maps.app.goo.gl/Jz8HWVPxvSkzzJjN9
Double single 全部升等晚上住宿
=1605 到達順天灣國家公園
= 1632 等遊園車
= 1655 上遊園車
= 1720 下遊園車

= 1735 出發前往順天灣濕地保護區

+82 61-749-6052

https://maps.app.goo.gl/vJ2BVEWXMLwtcgRK6
= 1755到
=1810出發前往麗水 晚餐約40min

=晚餐 兩餐 dookki 두끼 韓國年糕火鍋吃到飽 

Dukki
+82 61-683-1929
https://maps.app.goo.gl/z7mggzd8PTfkyipz5
=2000完食 2010出發飯店

=2031到達 Yeosu Venezia Hotel & Resort

+82 61-664-0001
https://maps.app.goo.gl/2wvz18XckStJyKrd9




2023年4月18日 星期二

[tech] openai chatGPT api rate limits : /v1/chat/completions

 

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x124e78eb0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))


Rate Limit Advice | OpenAI Help Center https://help.openai.com/en/articles/6891753-rate-limit-advice

"Rate limits can be quantized, meaning they are enforced over shorter periods of time (e.g. 60,000 requests/minute may be enforced as 1,000 requests/second). Sending short bursts of requests or contexts (prompts+max_tokens) that are too long can lead to rate limit errors, even when you are technically below the rate limit per minute."


How can I fix it?

  • Include exponential back-off logic in your code. This will catch and retry failed requests.

  • For token limits

    • Reduce the max_tokens to match the size of your completions. Usage needs are estimated from this value, so reducing it will decrease the chance that you unexpectedly receive a rate limit error. For example, if your prompt creates completions around 400 tokens, the max_tokens value should be around the same size.

    • Optimize your prompts. You can do this by making your instructions shorter, removing extra words, and getting rid of extra examples. You might need to work on your prompt and test it after these changes to make sure it still works well. The added benefit of a shorter prompt is reduced cost to you. If you need help, let us know.

  • For request limits

    • Batch your prompts in an array. This will reduce the number of requests you need to make. The prompt parameter can hold up to 20 unique prompts.


Rate Limits - OpenAI API https://platform.openai.com/docs/guides/rate-limits/overview


2023年4月11日 星期二

[mac] 如何在 Mac 使用 automator 加入常用的 shell script shortcut 指令

 如何在 Mac 使用 automator 加入常用的 shortcut 指令

在Mac中可以使用 automator shell script 設定 service 並且使用keyboard shortcut 呼叫

例如想要快速的輸入日期跟時間格式 2023-04-11 Tue 11:04:49

在shell 下使用 date "+%F %a %H:%M:%S" | pbcopy

可以在 automator 加入quick action 使用 run shell script , pass input to stdin

另外在 keyboard shortcut 使用一個不衝突的 shortcut 設定




[QCY-T1] QCY-T1 藍芽配對 與 手機連線

QCY-T1 藍芽配對 與 手機連線

- 從充電盒中取出,它們將自動開機並相互配對。當左耳塞上的 LED 關閉時,右耳塞將自動進入配對模式。在手機上,搜索 QCY-T1_R 並點擊 將手機連接到兩個 EarBuds。

- 關閉兩個 EarBuds 的電源,並在兩個 EarBud 上點擊並按住 MFB(開關) 20 秒(LED 會先閃爍紅白光,然後熄滅,10​​ 秒後會閃爍紅白光 3 次)。長按兩隻耳塞 1 秒開機(LED 紅白兩下閃爍),兩隻耳塞會自動配對。然後當左側 EarBud 上的 LED 關閉時,右側 EarBud 將自動進入配對模式(LED 呈紅色和白色閃爍)。在手機上搜索 QCY-T1_R 並點擊 將兩個 EarBuds 與手機連接。


- 可以單獨連接 QCY-T1_L 使用單耳模式