Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: nvidia nim environment #2817

Merged
merged 3 commits into from
Jan 27, 2025
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 packages/plugin-nvidia-nim/src/actions/actionGetTopic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ export const getTopicAction: Action = {
// Parse the prompt using our helper
const { systemContent, userContent } = parseOffTopicPrompt(
messageContent.text,
config.NVIDIA_TOPIC_SYSTEM || "",
messageContent.userMessage || config.NVIDIA_TOPIC_USER || ""
config.NVIDIA_OFFTOPIC_SYSTEM || "",
messageContent.userMessage || config.NVIDIA_OFFTOPIC_USER || ""
);

console.log("Debug - Parsed content:", {
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-nvidia-nim/src/utils/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const baseConfigSchema = z.object({

// Action-specific schemas
const topicControlSchema = baseConfigSchema.extend({
NVIDIA_TOPIC_SYSTEM: z.string(),
NVIDIA_TOPIC_USER: z.string()
NVIDIA_OFFTOPIC_SYSTEM: z.string(),
NVIDIA_OFFTOPIC_USER: z.string()
});

const safetySchema = baseConfigSchema.extend({
Expand Down
Loading