mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-02 23:28:39 +08:00
fix: previous fix
This commit is contained in:
parent
56710e17f3
commit
ee7bedd558
@ -21,6 +21,10 @@ class XAIService extends BaseService {
|
||||
get_system_prompt () {
|
||||
return PUTER_PROMPT;
|
||||
}
|
||||
|
||||
adapt_model (model) {
|
||||
return model;
|
||||
}
|
||||
|
||||
async _init () {
|
||||
this.anthropic = new Anthropic({
|
||||
@ -28,7 +32,7 @@ class XAIService extends BaseService {
|
||||
baseURL: 'https://api.x.ai'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
static IMPLEMENTS = {
|
||||
['puter-chat-completion']: {
|
||||
async list () {
|
||||
@ -37,6 +41,7 @@ class XAIService extends BaseService {
|
||||
];
|
||||
},
|
||||
async complete ({ messages, stream, model }) {
|
||||
model = this.adapt_model(model);
|
||||
const adapted_messages = [];
|
||||
|
||||
const system_prompts = [];
|
||||
|
Loading…
Reference in New Issue
Block a user