EADST

OpenAI's Available Models

Exploring OpenAI's Available Models with Python

import openai

# Set your API key
openai.api_key = "sk-proj-x"

def list_all_models():
    # Fetch the list of available models
    models = openai.Model.list()
    # Print each model's ID
    for model in models['data']:
        print(model['id'])

list_all_models()
相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
站点统计

本站现有博文280篇,共被浏览551838

本站已经建立2139天!

热门文章
文章归档
回到顶部