Skip to content

Commit eb26b8b

Browse files
committed
fix: remove temperature as it's not supported by new model
1 parent 20106fc commit eb26b8b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/agent-api/src/functions/chats-post.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,7 @@ export async function postChats(request: HttpRequest, context: InvocationContext
7777
const credentials = getCredentials();
7878
const azureADTokenProvider = getAzureOpenAiTokenProvider();
7979

80-
model = new AzureChatOpenAI({
81-
// Controls randomness. 0 = deterministic, 1 = maximum randomness
82-
temperature: 0.3,
83-
azureADTokenProvider,
84-
});
80+
model = new AzureChatOpenAI({ azureADTokenProvider });
8581

8682
// Initialize chat history
8783
chatHistory = new AzureCosmsosDBNoSQLChatMessageHistory({

0 commit comments

Comments
 (0)