Skip to content

Commit

Permalink
change cortexjs package name
Browse files Browse the repository at this point in the history
  • Loading branch information
marknguyen1302 authored and louis-menlo committed Jul 25, 2024
1 parent a7c7bc2 commit 1399bc6
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cortex-js/src/domain/models/assistant.interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Cortex } from 'cortexso-node';
import { Cortex } from '@cortexso/cortex.js';
// TODO: Why we need to alias these?

export interface Assistant extends Cortex.Beta.Assistant {
Expand Down
2 changes: 1 addition & 1 deletion cortex-js/src/domain/models/message.interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Cortex } from 'cortexso-node';
import { Cortex } from '@cortexso/cortex.js';

export interface Message extends Cortex.Beta.Threads.Message {}

Expand Down
2 changes: 1 addition & 1 deletion cortex-js/src/domain/models/model.interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Cortex } from 'cortexso-node';
import { Cortex } from '@cortexso/cortex.js';

export interface Model
extends Cortex.Model,
Expand Down
2 changes: 1 addition & 1 deletion cortex-js/src/domain/models/thread.interface.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Assistant } from './assistant.interface';
import { Cortex } from 'cortexso-node';
import { Cortex } from '@cortexso/cortex.js';

export interface ThreadToolResources
extends Cortex.Beta.Threads.Thread.ToolResources {}
Expand Down
2 changes: 1 addition & 1 deletion cortex-js/src/infrastructure/commanders/base.command.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CommandRunner } from 'nest-commander';
import { Injectable } from '@nestjs/common';
import { CortexUsecases } from '@/usecases/cortex/cortex.usecases';
import Cortex from 'cortexso-node';
import Cortex from '@cortexso/cortex.js';
import ora from 'ora';
import { FileManagerService } from '../services/file-manager/file-manager.service';
import { cortexNamespace, cortexServerAPI } from '../constants/cortex';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { TelemetryUsecases } from '@/usecases/telemetry/telemetry.usecases';
import { BenchmarkHardware } from '@/domain/telemetry/telemetry.interface';
import { defaultBenchmarkConfiguration } from '../constants/benchmark';
import { inspect } from 'util';
import { Cortex } from 'cortexso-node';
import { Cortex } from '@cortexso/cortex.js';

@SubCommand({
name: 'benchmark',
Expand Down
2 changes: 1 addition & 1 deletion cortex-js/src/infrastructure/commanders/chat.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Engines } from './types/engine.interface';
import { join } from 'path';
import { FileManagerService } from '../services/file-manager/file-manager.service';
import { isRemoteEngine } from '@/utils/normalize-model-id';
import { Cortex } from 'cortexso-node';
import { Cortex } from '@cortexso/cortex.js';
import { ChatClient } from './services/chat-client';
import { downloadModelProgress } from '@/utils/pull-model';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { InquirerService, Option, SubCommand } from 'nest-commander';
import { inspect } from 'util';
import { CortexUsecases } from '@/usecases/cortex/cortex.usecases';
import { BaseCommand } from './base.command';
import { Cortex } from 'cortexso-node';
import { Cortex } from '@cortexso/cortex.js';
import ora from 'ora';

interface EmbeddingCommandOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { CreateThreadDto } from '@/infrastructure/dtos/threads/create-thread.dto
import { CreateThreadAssistantDto } from '@/infrastructure/dtos/threads/create-thread-assistant.dto';
import { ModelParameterParser } from '@/utils/model-parameter.parser';
import { TextContentBlock } from '@/domain/models/message.interface';
import { Cortex } from 'cortexso-node';
import { Cortex } from '@cortexso/cortex.js';

export class ChatClient {
private exitClause = 'exit()';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Cortex } from 'cortexso-node';
import { Cortex } from '@cortexso/cortex.js';

export interface ApiConfig {
base_url: string;
Expand Down
2 changes: 1 addition & 1 deletion cortex-js/src/usecases/telemetry/telemetry.usecases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from '@/domain/telemetry/telemetry.interface';
import { ContextService } from '@/infrastructure/services/context/context.service';
import { HttpException, Inject, Injectable, Scope } from '@nestjs/common';
import { Cortex } from 'cortexso-node';
import { Cortex } from '@cortexso/cortex.js';
import { v4 } from 'uuid';

@Injectable({ scope: Scope.TRANSIENT })
Expand Down
2 changes: 1 addition & 1 deletion cortex-js/src/utils/pull-model.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Presets, SingleBar } from "cli-progress";
import { Cortex } from "cortexso-node";
import { Cortex } from "@cortexso/cortex.js";
import { exit, stdin, stdout } from 'node:process';

export const downloadModelProgress = async (cortex: Cortex, downloadId?: string) => {
Expand Down

0 comments on commit 1399bc6

Please sign in to comment.