From c1d3f0fb101522eaedf0b8055c804b133dbcf556 Mon Sep 17 00:00:00 2001 From: AiGptCode <146197697+AiGptCode@users.noreply.github.com> Date: Thu, 6 Jun 2024 09:36:11 +0330 Subject: [PATCH] Update index.html --- index.html | 213 ++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 154 insertions(+), 59 deletions(-) diff --git a/index.html b/index.html index d0f4c40..843bf7c 100644 --- a/index.html +++ b/index.html @@ -1,70 +1,165 @@ - -import requests -import json -from rich.console import Console -from rich.prompt import Prompt -from rich.markdown import Markdown - -console = Console() - -def get_assistant_response(messages): - url = "https://api.fireworks.ai/inference/v1/chat/completions" - payload = { - "model": "accounts/fireworks/models/llama-v3-70b-instruct", - "max_tokens": 8192, - "top_p": 1, - "top_k": 40, - "presence_penalty": 0, - "frequency_penalty": 0, - "temperature": 1, - "messages": messages + + + + Llama3 AI Assistant + + + +
+
+

Llama3 AI Assistant

+
+
+
+ System: You are a helpful assistant. +
+
+
+ + +
- response = requests.post(url, headers=headers, json=payload) + +
+ +