Skip to content

Commit

Permalink
support modelName and update default fireworks model (#6450)
Browse files Browse the repository at this point in the history
  • Loading branch information
henryweng03 authored Aug 7, 2024
1 parent 04a868d commit 7696d4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/langchain-community/src/chat_models/fireworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ export class ChatFireworks extends ChatOpenAI<ChatFireworksCallOptions> {

super({
...fields,
model: fields?.model || "accounts/fireworks/models/llama-v2-13b-chat",
model:
fields?.model ||
fields?.modelName ||
"accounts/fireworks/models/llama-v3p1-8b-instruct",
apiKey: fireworksApiKey,
configuration: {
baseURL: "https://api.fireworks.ai/inference/v1",
Expand Down

0 comments on commit 7696d4f

Please sign in to comment.