Skip to content

Commit

Permalink
fix: previous fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelDeimos committed Nov 22, 2024
1 parent 56710e1 commit ee7bedd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/backend/src/modules/puterai/XAIService.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@ class XAIService extends BaseService {
get_system_prompt () {
return PUTER_PROMPT;
}

adapt_model (model) {
return model;
}

async _init () {
this.anthropic = new Anthropic({
apiKey: this.global_config.services.xai.apiKey,
baseURL: 'https://api.x.ai'
});
}

static IMPLEMENTS = {
['puter-chat-completion']: {
async list () {
Expand All @@ -37,6 +41,7 @@ class XAIService extends BaseService {
];
},
async complete ({ messages, stream, model }) {
model = this.adapt_model(model);
const adapted_messages = [];

const system_prompts = [];
Expand Down

0 comments on commit ee7bedd

Please sign in to comment.