mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 18:30:15 +01:00
feat: first pass, bedrock chat. note: AgentClient is returning agents as conversation.endpoint
This commit is contained in:
parent
120a6a55fb
commit
60ee12d3e8
20 changed files with 270 additions and 23 deletions
|
|
@ -22,7 +22,7 @@ const AgentController = async (req, res, next, initializeClient, addTitle) => {
|
|||
|
||||
const sender = getResponseSender({
|
||||
...endpointOption,
|
||||
model: endpointOption.modelOptions.model,
|
||||
model: endpointOption.model_parameters.model,
|
||||
modelDisplayLabel,
|
||||
});
|
||||
const newConvo = !conversationId;
|
||||
|
|
|
|||
16
api/server/controllers/bedrock/client.js
Normal file
16
api/server/controllers/bedrock/client.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
const { EModelEndpoint } = require('librechat-data-provider');
|
||||
const AgentClient = require('~/server/controllers/agents/client');
|
||||
const { logger } = require('~/config');
|
||||
|
||||
class BedrockClient extends AgentClient {
|
||||
constructor(options = {}) {
|
||||
super(options);
|
||||
this.options.endpoint = EModelEndpoint.bedrock;
|
||||
}
|
||||
|
||||
setOptions(options) {
|
||||
logger.info('[api/server/controllers/bedrock/client.js] setOptions', options);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = BedrockClient;
|
||||
Loading…
Add table
Add a link
Reference in a new issue