Skip to content

Commit

Permalink
Merge pull request #42 from milistu/llm
Browse files Browse the repository at this point in the history
Upade LLM model
  • Loading branch information
milistu authored May 17, 2024
2 parents dcba319 + d7294e9 commit 240d57a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def response_generator(query: str):
# Rout query
collections = semantic_query_router(
client=openai_client,
model=config["openai"]["gpt_model"]["router"],
query=query,
prompt=ROUTER_PROMPT,
temperature=config["openai"]["gpt_model"]["temperature"],
Expand All @@ -82,7 +83,7 @@ def response_generator(query: str):

stream = get_answer(
client=openai_client,
model=config["openai"]["gpt_model"]["name"],
model=config["openai"]["gpt_model"]["llm"],
temperature=config["openai"]["gpt_model"]["temperature"],
messages=get_messages(
context=context, query=query, conversation=st.session_state.messages
Expand Down
2 changes: 1 addition & 1 deletion chat-dev.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
"outputs": [],
"source": [
"response = openai_client.chat.completions.create(\n",
" model=config[\"openai\"][\"gpt_model\"][\"name_light\"],\n",
" model=config[\"openai\"][\"gpt_model\"][\"router\"],\n",
" temperature=config[\"openai\"][\"gpt_model\"][\"temperature\"],\n",
" messages=messages,\n",
")"
Expand Down
4 changes: 2 additions & 2 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ openai:
name: "text-embedding-3-small"
dimensions: 1536
gpt_model:
name: "gpt-4-turbo-preview"
name_light: "gpt-3.5-turbo"
llm: "gpt-4o"
router: "gpt-3.5-turbo"
temperature: 0
max_conversation: 100
collection:
Expand Down

0 comments on commit 240d57a

Please sign in to comment.