refactor: ts in packages use extensionless import
This commit is contained in:
@@ -7,11 +7,11 @@
|
||||
|
||||
import { LlmAdapter, LlmError } from '@deepseek-ai/dsh-llm'
|
||||
import type { GenerateOptions, StreamChunk } from '@deepseek-ai/dsh-llm'
|
||||
import { serializeRequest } from './serialize.ts'
|
||||
import type { RequestDefaults } from './serialize.ts'
|
||||
import { parseSse } from './sse.ts'
|
||||
import { translate } from './translate.ts'
|
||||
import type { WireError } from './types.ts'
|
||||
import { serializeRequest } from './serialize'
|
||||
import type { RequestDefaults } from './serialize'
|
||||
import { parseSse } from './sse'
|
||||
import { translate } from './translate'
|
||||
import type { WireError } from './types'
|
||||
|
||||
export interface DeepSeekAdapterOptions {
|
||||
apiKey: string
|
||||
|
||||
@@ -21,15 +21,15 @@
|
||||
import type { Context } from 'cordis'
|
||||
import z from 'schemastery'
|
||||
import type {} from '@deepseek-ai/dsh-llm'
|
||||
import { DeepSeekAdapter } from './adapter.ts'
|
||||
import { DeepSeekAdapter } from './adapter'
|
||||
|
||||
export { DeepSeekAdapter, httpErrorCode } from './adapter.ts'
|
||||
export type { DeepSeekAdapterOptions } from './adapter.ts'
|
||||
export { serializeMessages, serializeRequest } from './serialize.ts'
|
||||
export type { RequestDefaults } from './serialize.ts'
|
||||
export { DONE, parseSse } from './sse.ts'
|
||||
export { mapFinishReason, mapUsage, translate } from './translate.ts'
|
||||
export type * from './types.ts'
|
||||
export { DeepSeekAdapter, httpErrorCode } from './adapter'
|
||||
export type { DeepSeekAdapterOptions } from './adapter'
|
||||
export { serializeMessages, serializeRequest } from './serialize'
|
||||
export type { RequestDefaults } from './serialize'
|
||||
export { DONE, parseSse } from './sse'
|
||||
export { mapFinishReason, mapUsage, translate } from './translate'
|
||||
export type * from './types'
|
||||
|
||||
export const name = 'llm-deepseek'
|
||||
export const inject = ['llm']
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
import { LlmError } from '@deepseek-ai/dsh-llm'
|
||||
import type { ContentBlock, GenerateOptions, Message } from '@deepseek-ai/dsh-llm'
|
||||
import type { WireMessage, WireRequest, WireTool } from './types.ts'
|
||||
import type { WireMessage, WireRequest, WireTool } from './types'
|
||||
|
||||
/** Adapter-level request defaults (from plugin config). */
|
||||
export interface RequestDefaults {
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
|
||||
import { CallId, LlmError } from '@deepseek-ai/dsh-llm'
|
||||
import type { ContentBlock, FinishReason, StreamChunk, TokenUsage } from '@deepseek-ai/dsh-llm'
|
||||
import { DONE } from './sse.ts'
|
||||
import type { WireChunk, WireUsage } from './types.ts'
|
||||
import { DONE } from './sse'
|
||||
import type { WireChunk, WireUsage } from './types'
|
||||
|
||||
/** One open block under assembly. */
|
||||
interface OpenBlock {
|
||||
|
||||
Reference in New Issue
Block a user