bot
This commit is contained in:
parent
054e77a370
commit
6a286fb90b
8 changed files with 384 additions and 6 deletions
|
|
@ -1,7 +1,10 @@
|
|||
const { createAgentApiConnectorStrategy } = require("./agent-api");
|
||||
const { createLocalCodexConnectorStrategy } = require("./local-codex");
|
||||
|
||||
function createConnectorStrategy(config) {
|
||||
switch (config.type) {
|
||||
case "agent-api":
|
||||
return createAgentApiConnectorStrategy(config.agentApi);
|
||||
case "local-codex":
|
||||
return createLocalCodexConnectorStrategy(config.localCodex);
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue