Skip to content

Commit

Permalink
chore: cleanup logging
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodacus committed Nov 9, 2024
1 parent d4c4fe1 commit f28f7f0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/lib/.server/llm/stream-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { getModel } from '~/lib/.server/llm/model';
import { MAX_TOKENS } from './constants';
import { getSystemPrompt } from './prompts';
import { MODEL_LIST, DEFAULT_MODEL, DEFAULT_PROVIDER } from '~/utils/constants';
import { logger } from '~/utils/logger';

interface ToolResult<Name extends string, Args, Result> {
toolCallId: string;
Expand Down Expand Up @@ -41,7 +40,6 @@ function extractModelFromMessage(message: Message): { model: string; content: st

export function streamText(messages: Messages, env: Env, options?: StreamingOptions) {
let currentModel = DEFAULT_MODEL;
logger.debug('model List', JSON.stringify(MODEL_LIST, null, 2))
const processedMessages = messages.map((message) => {
if (message.role === 'user') {
const { model, content } = extractModelFromMessage(message);
Expand Down

0 comments on commit f28f7f0

Please sign in to comment.