fix: compliant with gpt-5 models

This commit is contained in:
Per Stark
2025-10-01 10:17:31 +02:00
parent 945a2b7f37
commit 022f4d8575
7 changed files with 19 additions and 27 deletions

View File

@@ -154,8 +154,6 @@ pub fn create_chat_request(
CreateChatCompletionRequestArgs::default()
.model(&settings.query_model)
.temperature(0.2)
.max_tokens(3048u32)
.messages([
ChatCompletionRequestSystemMessage::from(settings.query_system_prompt.clone()).into(),
ChatCompletionRequestUserMessage::from(user_message).into(),

View File

@@ -1,5 +1,4 @@
use surrealdb::Error;
use tracing::debug;
use common::storage::{db::SurrealDbClient, types::knowledge_entity::KnowledgeEntity};
@@ -57,8 +56,6 @@ pub async fn find_entities_by_relationship_by_id(
entity_id
);
debug!("{}", query);
db.query(query).await?.take(0)
}