chatGPTBox icon indicating copy to clipboard operation
chatGPTBox copied to clipboard

能添加grok模型支持吗

Open lsh1215225 opened this issue 1 year ago • 1 comments

from openai import OpenAI

client = OpenAI( api_key=XAI_API_KEY, base_url="https://api.x.ai/v1", ) 按xai支持文档里的,现有的chatgpt(api)这个不是openai(api)好像改不了

lsh1215225 avatar Dec 22 '24 13:12 lsh1215225

You can use it with the custom model option, the API endpoint is https://api.x.ai/v1/chat/completions.

PeterDaveHello avatar Feb 01 '25 16:02 PeterDaveHello