fix: previous fix

This commit is contained in:
KernelDeimos 2024-11-22 10:37:00 -05:00
parent 56710e17f3
commit ee7bedd558

View File

@ -22,6 +22,10 @@ class XAIService extends BaseService {
return PUTER_PROMPT; return PUTER_PROMPT;
} }
adapt_model (model) {
return model;
}
async _init () { async _init () {
this.anthropic = new Anthropic({ this.anthropic = new Anthropic({
apiKey: this.global_config.services.xai.apiKey, apiKey: this.global_config.services.xai.apiKey,
@ -37,6 +41,7 @@ class XAIService extends BaseService {
]; ];
}, },
async complete ({ messages, stream, model }) { async complete ({ messages, stream, model }) {
model = this.adapt_model(model);
const adapted_messages = []; const adapted_messages = [];
const system_prompts = []; const system_prompts = [];