Skip to content

Commit

Permalink
Update customModelName in case of azure
Browse files Browse the repository at this point in the history
  • Loading branch information
punitda committed Nov 3, 2024
1 parent 0019011 commit 931b226
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hooks/useThread.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export function useThread() {
userId: string
): Promise<Thread | undefined> => {
const client = createClient();
if (customModelName.includes("azure/")) {
customModelName = customModelName.replace("azure/", "");
}
try {
const thread = await client.threads.create({
metadata: {
Expand Down

0 comments on commit 931b226

Please sign in to comment.