Skip to content

Commit

Permalink
chore(js): make sure we use "type": "text" for invocation params trac…
Browse files Browse the repository at this point in the history
…king
  • Loading branch information
dqbd committed May 20, 2024
1 parent 7fc116a commit efe2972
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/src/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export type RetrieverOutput = Array<{
export interface InvocationParamsSchema {
ls_provider?: string;
ls_model_name?: string;
ls_model_type: "chat";
ls_model_type: "chat" | "text";
ls_temperature?: number;
ls_max_tokens?: number;
ls_stop?: string[];
Expand Down
2 changes: 1 addition & 1 deletion js/src/wrappers/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export const wrapOpenAI = <T extends OpenAIType>(

return {
ls_provider: "openai",
ls_model_type: "chat",
ls_model_type: "text",
ls_model_name: params.model,
ls_max_tokens: params.max_tokens ?? undefined,
ls_temperature: params.temperature ?? undefined,
Expand Down

0 comments on commit efe2972

Please sign in to comment.