Skip to content

Commit

Permalink
server/ollama: some progress ...
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldschilly committed Feb 23, 2024
1 parent 71140d3 commit d3126cd
Show file tree
Hide file tree
Showing 10 changed files with 388 additions and 24 deletions.
7 changes: 3 additions & 4 deletions src/packages/frontend/customize.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,9 @@ async function init_customize() {

init_customize();

function process_ollama(ollama) {
if (ollama) {
actions.setState({ ollama: fromJS(ollama) });
}
function process_ollama(ollama?) {
if (!ollama) return;
actions.setState({ ollama: fromJS(ollama) });
}

function process_kucalc(obj) {
Expand Down
2 changes: 0 additions & 2 deletions src/packages/frontend/frame-editors/llm/model-switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ export default function ModelSwitch({
});
}

console.log("model", model);

// all models selectable here must be in util/db-schema/openai::USER_SELECTABLE_LANGUAGE_MODELS
return (
<Radio.Group
Expand Down
1 change: 1 addition & 0 deletions src/packages/hub/webapp-configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ export class WebappConfiguration {
for (const key in ollama) {
const conf = ollama[key];
const cocalc = conf.cocalc ?? {};
if (cocalc.disabled) continue;
const model = conf.model ?? key;
public_ollama[key] = {
key,
Expand Down
290 changes: 288 additions & 2 deletions src/packages/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d3126cd

Please sign in to comment.