Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package helloworld | |
import ( | |
"context" | |
"fmt" | |
"net/http" | |
"io" | |
"log" | |
"os" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# package>=version | |
line-bot-sdk | |
requests | |
git+https://github.com/ozgur/python-firebase | |
google.generativeai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from linebot import LineBotApi, WebhookHandler | |
from linebot.models import TextSendMessage | |
import json | |
import os | |
from firebase import firebase | |
import google.generativeai as genai | |
# 使用環境變量讀取憑證 | |
token = os.getenv('LINE_BOT_TOKEN') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
如何登入賣家中心? | |
①至賣家中心後台:<https://sellercenter.line.biz/giftshop> ,點選「登入ID」 | |
②點選「使用LINE帳號登入」 | |
③輸入帳號、密碼 | |
• 電子郵件帳號:<XXX@l.ine> (前方代碼為廠商自訂,後方固定為@l.ine) | |
• 如無法順利登入可透過首頁上的「忘記密碼」來取得登入資訊。 | |
無法登入賣家中心 | |
賣家中心的網址2022/07改版後更新為: <https://sellercenter.line.biz/giftshop/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import aiohttp | |
from fastapi import Request, FastAPI, HTTPException | |
from langchain.chat_models import ChatOpenAI | |
from langchain.chains import ConversationChain | |
from langchain.memory import ConversationBufferWindowMemory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func getPOIsFlexBubble(records ResponsePOI) []*linebot.BubbleContainer { | |
log.Println("getPOIsFlexBubble") | |
if len(records.Pois) == 0 { | |
log.Println("err1") | |
return nil | |
} | |
var columnList []*linebot.BubbleContainer | |
for _, result := range records.Pois { | |
log.Println("Add flex:", result.Name, result.CoverPhoto, result.PoiURL) |
NewerOlder