Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
scampion committed Jan 27, 2025
1 parent 25e644d commit 0eaa264
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 108 deletions.
1 change: 1 addition & 0 deletions conf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ models:
proxy_pass: "http://127.0.0.1:6193/echo"
parser: "echo"
api_key: "$DEEPSEEK_API_KEY"
pii_protection_url: "http://127.0.0.1:8001/check-pii-base64"

- location: "/ollama/gemma2/2b/"
model_name: "gemma2:2b-instruct-q6_K"
Expand Down
101 changes: 0 additions & 101 deletions markdown

This file was deleted.

9 changes: 3 additions & 6 deletions www/chat.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,8 @@ <h2>Conversations</h2>

// Create a Set to track unique model names
const uniqueModels = new Set();

models.forEach(modelObj => {
const modelName = Object.keys(modelObj)[0];
const modelData = modelObj[modelName];


Object.entries(models).forEach(([modelName, modelData]) => {
if (!uniqueModels.has(modelName)) {
uniqueModels.add(modelName);
const option = document.createElement('option');
Expand All @@ -187,7 +184,7 @@ <h2>Conversations</h2>
select.appendChild(option);
}
});

// Set default selection to first model
if (select.options.length > 0) {
select.selectedIndex = 0;
Expand Down
3 changes: 2 additions & 1 deletion www/parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ const parsers = {
return messages;
},
parseResponse: (response) => {
console.log('Echo response:', response);
return [{
role: 'assistant',
content: response.content || 'Echo response'
content: response.messages[0].content || 'Echo response'
}];
}
}
Expand Down

0 comments on commit 0eaa264

Please sign in to comment.