Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix inconsistent casing with provider #529

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/agent-chatbot/mastra.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 3 additions & 1 deletion packages/admin/src/service/service.configWriter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]*?)\]/;
Expand Down
Loading