alonsosilva commited on
Commit
e53a3a8
·
1 Parent(s): 93c1831

Change model to gpt-3.5-turbo with a different prompt

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -168,12 +168,12 @@ def Page():
168
  messages.value = [*messages.value, {"role": "user", "content": " "}]
169
  def response(message):
170
  extraction_stream = client.chat.completions.create_partial(
171
- model="gpt-4-turbo-2024-04-09",
172
  response_model=KnowledgeGraph,
173
  messages=[
174
  {
175
  "role": "user",
176
- "content": f"Help me understand the following by describing it as small knowledge graph: {text_block.value}",
177
  },
178
  ],
179
  temperature=0,
 
168
  messages.value = [*messages.value, {"role": "user", "content": " "}]
169
  def response(message):
170
  extraction_stream = client.chat.completions.create_partial(
171
+ model="gpt-3.5-turbo",
172
  response_model=KnowledgeGraph,
173
  messages=[
174
  {
175
  "role": "user",
176
+ "content": f"Help me understand the following by describing it as small knowledge graph: {text_block.value}. It is important to add variety of colors in the nodes.",
177
  },
178
  ],
179
  temperature=0,