Skip to content

Commit

Permalink
feat: schema updates (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas2D authored May 28, 2024
1 parent a8b3b5c commit b89924a
Show file tree
Hide file tree
Showing 15 changed files with 5,048 additions and 2,969 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ import { GenAIChatModel } from '@ibm-generative-ai/node-sdk/langchain';
import { SystemMessage, HumanMessage } from '@langchain/core/messages';

const client = new GenAIChatModel({
model_id: 'meta-llama/llama-2-70b-chat',
model_id: 'meta-llama/llama-3-70b-instruct',
client: new Client({
endpoint: process.env.ENDPOINT,
apiKey: process.env.API_KEY,
Expand Down
2 changes: 1 addition & 1 deletion examples/langchain/llm-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Client } from '../../src/index.js';

const makeClient = () =>
new GenAIChatModel({
model_id: 'meta-llama/llama-2-70b-chat',
model_id: 'meta-llama/llama-3-70b-instruct',
client: new Client({
endpoint: process.env.ENDPOINT,
apiKey: process.env.API_KEY,
Expand Down
11 changes: 10 additions & 1 deletion examples/langchain/llm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,16 @@ const makeClient = () =>
repetition_penalty: 1.5,
},
moderations: {
hap: true,
hap: {
input: {
enabled: true,
threshold: 0.75,
},
output: {
enabled: true,
threshold: 0.75,
},
},
},
});

Expand Down
2 changes: 1 addition & 1 deletion examples/shared/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const MODEL = 'google/flan-ul2';
export const CHAT_MODEL = 'meta-llama/llama-2-70b-chat';
export const CHAT_MODEL = 'meta-llama/llama-3-70b-instruct';
Loading

0 comments on commit b89924a

Please sign in to comment.