victor HF staff commited on
Commit
229803c
1 Parent(s): 4a3f962
.gitignore CHANGED
@@ -19,3 +19,4 @@ Thumbs.db
19
  # Vite
20
  vite.config.js.timestamp-*
21
  vite.config.ts.timestamp-*
 
 
19
  # Vite
20
  vite.config.js.timestamp-*
21
  vite.config.ts.timestamp-*
22
+ .aider*
src/lib/components/Playground/Playground.svelte CHANGED
@@ -10,7 +10,7 @@
10
  };
11
 
12
  const startMessages: Message[] = [
13
- { role: "user", content: "Complete the equation 1+1= ,just the answer" },
14
  ];
15
  const compatibleModels: string[] = [
16
  'meta-llama/Meta-Llama-3-8B-Instruct',
@@ -60,7 +60,7 @@
60
  }
61
  (document.activeElement as HTMLElement).blur();
62
  loading = true;
63
-
64
  try {
65
  const hf = new HfInference(hfToken);
66
  const requestMessages = [
@@ -78,7 +78,7 @@
78
  messages: requestMessages,
79
  temperature,
80
  max_tokens: maxTokens,
81
- seed: 0,
82
  })) {
83
  if (chunk.choices && chunk.choices.length > 0) {
84
  if (streamingMessage && chunk.choices[0]?.delta?.content) {
@@ -94,9 +94,9 @@
94
  messages: requestMessages,
95
  temperature,
96
  max_tokens: maxTokens,
97
- seed: 0,
98
  });
99
-
100
  if (response.choices && response.choices.length > 0) {
101
  const newMessage = { role: 'assistant', content: response.choices[0].message.content };
102
  messages = [...messages, newMessage];
 
10
  };
11
 
12
  const startMessages: Message[] = [
13
+ { role: 'user', content: 'Complete the equation 1+1= ,just the answe' }
14
  ];
15
  const compatibleModels: string[] = [
16
  'meta-llama/Meta-Llama-3-8B-Instruct',
 
60
  }
61
  (document.activeElement as HTMLElement).blur();
62
  loading = true;
63
+
64
  try {
65
  const hf = new HfInference(hfToken);
66
  const requestMessages = [
 
78
  messages: requestMessages,
79
  temperature,
80
  max_tokens: maxTokens,
81
+ seed: 0
82
  })) {
83
  if (chunk.choices && chunk.choices.length > 0) {
84
  if (streamingMessage && chunk.choices[0]?.delta?.content) {
 
94
  messages: requestMessages,
95
  temperature,
96
  max_tokens: maxTokens,
97
+ seed: 0
98
  });
99
+
100
  if (response.choices && response.choices.length > 0) {
101
  const newMessage = { role: 'assistant', content: response.choices[0].message.content };
102
  messages = [...messages, newMessage];