Skip to content

Commit

Permalink
Add model tags to calls (#250)
Browse files Browse the repository at this point in the history
* Add model tags to calls

* Add fallback value
  • Loading branch information
jacoblee93 authored Jan 23, 2024
1 parent c7e109e commit bdfaccf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions chat-langchain/app/components/ChatWindow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,20 @@ export function ChatWindow(props: { conversationId: string }) {
timeout: 60000,
},
});
const llmDisplayName = llm ?? "openai_gpt_3_5_turbo";
const streamLog = await remoteChain.streamLog(
{
question: messageValue,
chat_history: chatHistory,
},
{
configurable: {
llm,
llm: llmDisplayName,
},
tags: ["model:" + llmDisplayName],
metadata: {
conversation_id: conversationId,
llm,
llm: llmDisplayName,
},
},
{
Expand Down

0 comments on commit bdfaccf

Please sign in to comment.