关于api.oaifree的chat2api的一个问题

目前chat2api是否支持gpt-4o和o1模型,如果可以,请教佬们如何调用
我将模型名设为“gpt-4o”,但好像被定向到3.5了

2 个赞

支持的… :tieba_087:

没有这种重定向逻辑,你是怎么得出重定向的结论呢

1 个赞

搞七捻三开发调优

始皇,我刚刚又试了一下,就是一个逻辑,我发现我用的是o1,官网用4o其实也答不对,不知道o1该设置什么模型名呢

1 个赞
[
    {
        "slug": "text-davinci-002-render-sha",
        "max_tokens": 8191,
        "title": "Default (GPT-3.5)",
        "description": "我们最快的模型,非常适合大多数日常任务。",
        "tags": [
            "gpt3.5"
        ],
        "capabilities": {},
        "product_features": {}
    },
    {
        "slug": "gpt-4",
        "max_tokens": 32767,
        "title": "GPT-4 (All Tools)",
        "description": "浏览、高级数据分析和 DALL·E 现已集成到 GPT-4 中",
        "tags": [
            "gpt4"
        ],
        "capabilities": {},
        "product_features": {},
        "enabled_tools": [
            "tools",
            "tools2",
            "dalle_3"
        ]
    },
    {
        "slug": "gpt-4o-mini",
        "max_tokens": 32767,
        "title": "GPT-4o mini",
        "description": "适合处理日常任务",
        "tags": [
            "gpt3.5",
            "gpt4o"
        ],
        "capabilities": {},
        "product_features": {}
    },
    {
        "slug": "o1-preview",
        "max_tokens": 57768,
        "title": "o1-preview",
        "description": "我们最强大的模型,非常适用于需要创造力和高级推理能力的任务。",
        "tags": [
            "o1"
        ],
        "capabilities": {},
        "product_features": {}
    },
    {
        "slug": "o1-mini",
        "max_tokens": 98304,
        "title": "o1-mini",
        "description": "我们最强大的模型,非常适用于需要创造力和高级推理能力的任务。",
        "tags": [
            "o1"
        ],
        "capabilities": {},
        "product_features": {}
    },
    {
        "slug": "gpt-4o",
        "max_tokens": 32767,
        "title": "GPT-4o",
        "description": "最新、最高级的模型",
        "tags": [
            "gpt4",
            "gpt4o"
        ],
        "capabilities": {},
        "product_features": {},
        "enabled_tools": [
            "tools",
            "tools2",
            "dalle_3"
        ]
    }
]

官方 models 接口的返回,看slug

3 个赞

好的,感谢始皇,啵一个 :kissing_smiling_eyes:

这个啵把始皇吓到了

1 个赞

不错,知道了 o1 的上下文

请教陛下,这个max_tokens 是回复的最大生成TOKEN吗?

应该是输入的

2 个赞