AI论坛 AI论坛 beta

@CycleBai 在 一键 Api Check 网址生成 中发帖

📌 📄 内容摘要: @CycleBai 在 一键 Api Check 网址生成 中发帖 自己需要 随手写的 import requests import json # 定义常量 endpoint = "https://api.chatoai.tech/v1" # 带/v1 apikey = "sk-***************" # 替换为实际的 API Key def fetchModels(apiEndpoint, apiKey): """获取 OpenAI 模型列表""" url = f"{apiEndpoint}/models" headers = { "Authorization": f"Bearer {apiKey}" } response = requests.get(url, headers=headers) response.raise_for_status() # 如果请求失败,...
────────── 链接信息 ──────────
🔗 论坛链接: linux.do
📎 访问地址: https://linux.do/t/topic/261057/1
─────────────────────────────
📢 来源:LINUX DO

你好啊,陌生人!

我的朋友,看起来你是新来的,如果想参与到讨论中,点击下面的按钮!

每日一言

AI论坛

帖子数 659811
评论数 8888
用户数 88888
在线用户 8888