diff --git a/examples/agent-chatbot/mastra.config.ts b/examples/agent-chatbot/mastra.config.ts index 336293b4..774209f0 100644 --- a/examples/agent-chatbot/mastra.config.ts +++ b/examples/agent-chatbot/mastra.config.ts @@ -44,8 +44,8 @@ export const config: Config = { agentDirPath: '/mastra-agents', vectorProvider: [ { - name: 'pinecone', - provider: 'pinecone', + name: 'PINECONE', + provider: 'PINECONE', apiKey: process.env.PINECONE_API_KEY!, dirPath: '/mastra-vector-configs' } diff --git a/examples/contact-book/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json b/examples/contact-book/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json index 6eb14123..3c16cec6 100644 --- a/examples/contact-book/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json +++ b/examples/contact-book/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json @@ -3,7 +3,7 @@ "name": "NFL Analyst", "agentInstructions": "You are a sports analyst bot and you can help users answer questions about NFL games.\nYou and the user can discuss teams, athletes and weekly scores.\nIf you do not have the information respond with 'I do not have that information'.\nFor every response call 'send_slack_message' with the question and answer to Slack.\nAs a final step, return your answers to the user in the messages thread.", "model": { - "provider": "open-ai-assistant", + "provider": "OPEN_AI_ASSISTANT", "name": "tts-1-1106" }, "outputs": { diff --git a/examples/email-client/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json b/examples/email-client/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json index 6eb14123..3c16cec6 100644 --- a/examples/email-client/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json +++ b/examples/email-client/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json @@ -3,7 +3,7 @@ "name": "NFL Analyst", "agentInstructions": "You are a sports analyst bot and you can help users answer questions about NFL games.\nYou and the user can discuss teams, athletes and weekly scores.\nIf you do not have the information respond with 'I do not have that information'.\nFor every response call 'send_slack_message' with the question and answer to Slack.\nAs a final step, return your answers to the user in the messages thread.", "model": { - "provider": "open-ai-assistant", + "provider": "OPEN_AI_ASSISTANT", "name": "tts-1-1106" }, "outputs": { diff --git a/examples/github-stats/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json b/examples/github-stats/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json index 6eb14123..3c16cec6 100644 --- a/examples/github-stats/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json +++ b/examples/github-stats/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json @@ -3,7 +3,7 @@ "name": "NFL Analyst", "agentInstructions": "You are a sports analyst bot and you can help users answer questions about NFL games.\nYou and the user can discuss teams, athletes and weekly scores.\nIf you do not have the information respond with 'I do not have that information'.\nFor every response call 'send_slack_message' with the question and answer to Slack.\nAs a final step, return your answers to the user in the messages thread.", "model": { - "provider": "open-ai-assistant", + "provider": "OPEN_AI_ASSISTANT", "name": "tts-1-1106" }, "outputs": { diff --git a/examples/kitchen-sink/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json b/examples/kitchen-sink/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json index 6eb14123..3c16cec6 100644 --- a/examples/kitchen-sink/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json +++ b/examples/kitchen-sink/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json @@ -3,7 +3,7 @@ "name": "NFL Analyst", "agentInstructions": "You are a sports analyst bot and you can help users answer questions about NFL games.\nYou and the user can discuss teams, athletes and weekly scores.\nIf you do not have the information respond with 'I do not have that information'.\nFor every response call 'send_slack_message' with the question and answer to Slack.\nAs a final step, return your answers to the user in the messages thread.", "model": { - "provider": "open-ai-assistant", + "provider": "OPEN_AI_ASSISTANT", "name": "tts-1-1106" }, "outputs": { diff --git a/examples/twitter-client/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json b/examples/twitter-client/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json index 6eb14123..3c16cec6 100644 --- a/examples/twitter-client/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json +++ b/examples/twitter-client/mastra-agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json @@ -3,7 +3,7 @@ "name": "NFL Analyst", "agentInstructions": "You are a sports analyst bot and you can help users answer questions about NFL games.\nYou and the user can discuss teams, athletes and weekly scores.\nIf you do not have the information respond with 'I do not have that information'.\nFor every response call 'send_slack_message' with the question and answer to Slack.\nAs a final step, return your answers to the user in the messages thread.", "model": { - "provider": "open-ai-assistant", + "provider": "OPEN_AI_ASSISTANT", "name": "tts-1-1106" }, "outputs": { diff --git a/packages/admin/agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json b/packages/admin/agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json index 6eb14123..3c16cec6 100644 --- a/packages/admin/agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json +++ b/packages/admin/agents/3349f9af-13c4-4004-b15e-df67f78cb7ff.json @@ -3,7 +3,7 @@ "name": "NFL Analyst", "agentInstructions": "You are a sports analyst bot and you can help users answer questions about NFL games.\nYou and the user can discuss teams, athletes and weekly scores.\nIf you do not have the information respond with 'I do not have that information'.\nFor every response call 'send_slack_message' with the question and answer to Slack.\nAs a final step, return your answers to the user in the messages thread.", "model": { - "provider": "open-ai-assistant", + "provider": "OPEN_AI_ASSISTANT", "name": "tts-1-1106" }, "outputs": { diff --git a/packages/admin/agents/fcb7a50f-d456-4130-bdcf-4e7fa02e4845.json b/packages/admin/agents/fcb7a50f-d456-4130-bdcf-4e7fa02e4845.json index fd917b85..c3ba3134 100644 --- a/packages/admin/agents/fcb7a50f-d456-4130-bdcf-4e7fa02e4845.json +++ b/packages/admin/agents/fcb7a50f-d456-4130-bdcf-4e7fa02e4845.json @@ -3,7 +3,7 @@ "name": "NFL Analyst", "agentInstructions": "You are a sports analyst bot and you can help users answer questions about NFL games.\nYou and the user can discuss teams, athletes and weekly scores.\nIf you do not have the information respond with 'I do not have that information'.\nFor every response call 'send_slack_message' with the question and answer to Slack.\nAs a final step, return your answers to the user in the messages thread.", "model": { - "provider": "open-ai-assistant", + "provider": "OPEN_AI_ASSISTANT", "name": "tts-1" }, "outputs": { diff --git a/packages/admin/src/service/service.configWriter.ts b/packages/admin/src/service/service.configWriter.ts index 24c7ad71..c6669520 100644 --- a/packages/admin/src/service/service.configWriter.ts +++ b/packages/admin/src/service/service.configWriter.ts @@ -115,7 +115,9 @@ export class ConfigWriterService { const newProviderConfig = `{ name: '${providerName}', - apiKey: process.env.${apiKey}! + provider: '${providerName}', + apiKey: process.env.${apiKey}!, + dirPath: '/mastra-vector-configs', }`; const vectorProviderRegex = /vectorProvider:\s*\[([\s\S]*?)\]/;