mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-03 07:48:46 +08:00
fix: previous fix
This commit is contained in:
parent
56710e17f3
commit
ee7bedd558
@ -22,6 +22,10 @@ class XAIService extends BaseService {
|
||||
return PUTER_PROMPT;
|
||||
}
|
||||
|
||||
adapt_model (model) {
|
||||
return model;
|
||||
}
|
||||
|
||||
async _init () {
|
||||
this.anthropic = new Anthropic({
|
||||
apiKey: this.global_config.services.xai.apiKey,
|
||||
@ -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