kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
build: update import paths
rodzic
979c129b8e
commit
64b0048738
|
@ -1,10 +1,11 @@
|
||||||
import * as types from './types'
|
import * as types from '@/types'
|
||||||
import { defaultOpenAIModel } from './constants'
|
import { defaultOpenAIModel } from '@/constants'
|
||||||
|
import { OpenAIChatModel } from '@/llms/openai'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
HumanFeedbackMechanism,
|
HumanFeedbackMechanism,
|
||||||
HumanFeedbackMechanismCLI
|
HumanFeedbackMechanismCLI
|
||||||
} from './human-feedback'
|
} from './human-feedback'
|
||||||
import { OpenAIChatModel } from './llms/openai'
|
|
||||||
|
|
||||||
export class Agentic {
|
export class Agentic {
|
||||||
// _taskMap: WeakMap<string, BaseTask<any, any>>
|
// _taskMap: WeakMap<string, BaseTask<any, any>>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { ZodRawShape, ZodTypeAny } from 'zod'
|
import { ZodRawShape, ZodTypeAny } from 'zod'
|
||||||
|
|
||||||
import { Agentic } from './agentic'
|
import { Agentic } from '@/agentic'
|
||||||
import { BaseTask } from './task'
|
import { BaseTask } from '@/task'
|
||||||
|
|
||||||
export type HumanFeedbackType = 'confirm' | 'selectOne' | 'selectN'
|
export type HumanFeedbackType = 'confirm' | 'selectOne' | 'selectN'
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { ZodRawShape, ZodTypeAny } from 'zod'
|
import { ZodRawShape, ZodTypeAny } from 'zod'
|
||||||
|
|
||||||
import * as types from './types'
|
import * as types from '@/types'
|
||||||
import { Agentic } from './agentic'
|
import { Agentic } from '@/agentic'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A `Task` is a typed, async function call that may be non-deterministic.
|
* A `Task` is a typed, async function call that may be non-deterministic.
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import { z } from 'zod'
|
import { z } from 'zod'
|
||||||
|
|
||||||
import * as types from '../types'
|
import * as types from '@/types'
|
||||||
import { Agentic } from '../agentic'
|
import { Agentic } from '@/agentic'
|
||||||
import { NovuClient } from '../services/novu'
|
import { NovuClient } from '@/services/novu'
|
||||||
import { BaseTask } from '../task'
|
import { BaseTask } from '@/task'
|
||||||
|
|
||||||
export const NovuNotificationToolInputSchema = z.object({
|
export const NovuNotificationToolInputSchema = z.object({
|
||||||
name: z.string(),
|
name: z.string(),
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import test from 'ava'
|
import test from 'ava'
|
||||||
|
|
||||||
import { NovuClient } from '../src/services/novu'
|
import { NovuClient } from '@/services/novu'
|
||||||
|
|
||||||
import './_utils'
|
import './_utils'
|
||||||
|
|
||||||
test('NovuClient.triggerEvent', async (t) => {
|
test('NovuClient.triggerEvent', async (t) => {
|
||||||
|
|
Ładowanie…
Reference in New Issue