Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[功能请求] 希望能添加xAI的引擎 #372

Open
31naitnij opened this issue Nov 16, 2024 · 1 comment
Open

[功能请求] 希望能添加xAI的引擎 #372

31naitnij opened this issue Nov 16, 2024 · 1 comment

Comments

@31naitnij
Copy link

如题,xAI测试放出免费的API KEY,希望可以添加其引擎
https://x.ai/

@31naitnij
Copy link
Author

{
"name": "xAI",
"languages": {
"source": {
"English": "english"
},
"target": {
"中文": "ZH"
}
},
"request": {
"url": "https://api.x.ai/v1/chat/completions",
"method": "POST",
"headers": {
"Content-Type": "application/json",
"User-Agent": "Ebook Translator",
"Authorization": "Bearer xxxxxxxxxxxxxxxxx"
},
"data": {
"messages": [
{
"role": "user",
"content": "Translate the content from to : "
}
],
"model": "grok-beta"
}
},
"response": "response['choices'][0]['message']['content']"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant