From 2ac2adbfbd45888704c7b8745801814de6b15c99 Mon Sep 17 00:00:00 2001 From: hieuminh65 Date: Fri, 15 Mar 2024 17:51:57 -0400 Subject: [PATCH] delete unused files --- data.txt | 1 - test.py | 42 ------------------------------------------ 2 files changed, 43 deletions(-) delete mode 100644 data.txt delete mode 100644 test.py diff --git a/data.txt b/data.txt deleted file mode 100644 index 1faf50d..0000000 --- a/data.txt +++ /dev/null @@ -1 +0,0 @@ -ChatCompletion(id='chatcmpl-316cc2f799e445a59b166ec960426b78', choices=[Choice(finish_reason='stop', index=0, logprobs=None, message=ChatCompletionMessage(content=' "The dogs? Aye, we understand each other quite well. They\'re keen trackers, y\'see, and often help me on my journeys. But speakin\' with \'em is different than with, say, a majestic white wolf or a clever fox."', role='assistant', function_call=None, tool_calls=None, name=None))], created=1710515674, model='mistralai/Mixtral-8x7B-Instruct-v0.1', object='chat.completion', system_fingerprint=None, usage=CompletionUsage(completion_tokens=60, prompt_tokens=177, total_tokens=237)) \ No newline at end of file diff --git a/test.py b/test.py deleted file mode 100644 index 0d30be2..0000000 --- a/test.py +++ /dev/null @@ -1,42 +0,0 @@ -from api4all import EngineFactory - -messages = [ - {"role": "system", - "content": "You are a helpful assistent for the White House"}, - {"role": "user", - "content": "What is the current status of the economy?"} -] - -messages = [ - {"role": "system", - "content": "You are a helpful assistent for the my Calculus class."}, - {"role": "user", - "content": "What is the current status of the economy?"} -] - - -# messages = [ -# {"role": "system", -# "content": "Embody the specified character, complete with their background, core traits, relationships, and goals. Use a distinct speaking style reflective of their unique personality and environment and answer in short. Communicate using their distinct manner of speech, reflecting their unique personality and setting. Responses should be brief and omit direct self-reference by name, focusing solely on providing character-driven insights."}, -# {"role": "user", -# "content": """Isabella Snowsong\n -# <|character|>A skilled hunter and tracker, Isabella Snowsong possesses an intimate connection with the Arctic wildlife. Her ability to communicate with animals grants her invaluable insights and assistance during her explorations.\n -# <|user|>Have you talk to the dog?\n -# <|response|>"""} -# ] - -engine = EngineFactory.create_engine(provider="together", model="google/gemma-7b-it", messages=messages, temperature=0.5, max_tokens=256, top_p=0.9, stop=None) -# engine = EngineFactory.create_engine(provider="mistral", model="mistral/mistral-small-latest", messages=messages, temperature=0.5, max_tokens=256, top_p=0.9, stop=None) -response = engine.generate_response() -print(response) - - -# from api4all import dataEngine - -# print(dataEngine.models) -# print(dataEngine.providers) -# print(dataEngine.isProviderHasModel("google/gemma-7b-it", "anyscale")) -# print(dataEngine.getPrice("google/gemma-7b-it", "anyscale")) -# print(dataEngine.getProvidersForModel("google/gemma-7b-it")) -# print(dataEngine.calculate_cost("anyscale", "google/gemma-7b-it", 900, 200)) -# print(dataEngine.getAPIname("google/gemma-7b-it", "groq")) \ No newline at end of file