01:47 · Aug 29, 2024 · Thu GitHub Models申请通过,API自由啦(暂时)📡 https://linux.do/t/topic/188073🔍 api🏷️ DO论坛🕒 2024-08-29 09:46:54 LINUX DO GitHub Models申请通过,API自由啦(暂时) 申请链接 import os from openai import OpenAI token = os.environ["GITHUB_TOKEN"] endpoint = "https://models.inference.ai.azure.com" model_name = "gpt-4o" client = OpenAI( base_url=endpoint, api_key=token, ) response = client.chat.completions.create(…