🐱初步实现

This commit is contained in:
2024-10-22 01:33:53 +08:00
parent 70e0665e95
commit d2261651fb
4 changed files with 111 additions and 3 deletions

View File

@ -8,7 +8,7 @@ from zhDateTime import DateTime
from pathlib import Path
from azure.ai.inference.aio import ChatCompletionsClient
from azure.ai.inference.models import SystemMessage, UserMessage
from .config import *
from config import *
async def get_image_b64(url):
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'