Skip to content

Commit

Permalink
update model enum naming
Browse files Browse the repository at this point in the history
  • Loading branch information
fahreddinozcan committed Jun 4, 2024
1 parent 97d1bb2 commit cf51c59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/upstash-llm-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { ChatOpenAI } from "@langchain/openai";
import { type BaseMessage } from "@langchain/core/messages";
import { type ChatGeneration } from "@langchain/core/outputs";

export type LLMType = "mistralai/Mistral-7B-Instruct-v0.2" | "meta-llama/Meta-Llama-3-8B-Instruct";
export type Model = "mistralai/Mistral-7B-Instruct-v0.2" | "meta-llama/Meta-Llama-3-8B-Instruct";

export type UpstashLLMClientConfig = {
model: LLMType;
model: Model;
apiKey: string;
streaming: boolean;
maxTokens?: number;
Expand All @@ -21,7 +21,7 @@ export type UpstashLLMClientConfig = {
};

export class UpstashLLMClient extends ChatOpenAI {
modelName: LLMType;
modelName: Model;
apiKey: string;
maxTokens?: number;
stop?: string[];
Expand Down

0 comments on commit cf51c59

Please sign in to comment.