chatGPTBox
chatGPTBox copied to clipboard
能添加grok模型支持吗
from openai import OpenAI
client = OpenAI( api_key=XAI_API_KEY, base_url="https://api.x.ai/v1", ) 按xai支持文档里的,现有的chatgpt(api)这个不是openai(api)好像改不了
You can use it with the custom model option, the API endpoint is https://api.x.ai/v1/chat/completions.