Skip to content

Commit

Permalink
Update params and prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed May 1, 2024
1 parent d37a832 commit ebc8272
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions convertanything/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def convertanything(
description += f" (Enum values: {enum_values})"
field_descriptions.append(description)
schema = "\n".join(field_descriptions)
prompt = f"""Act as a JSON converter that converts any text into the desired JSON format based on the schema provided. Respond only with JSON in a properly formatted markdown code block, no explanations.
prompt = f"""Act as a JSON converter that converts any text into the desired JSON format based on the schema provided. Respond only with JSON in a properly formatted markdown code block, no explanations. Make your best assumptions based on data to try to fill in information to match the schema provided.
**Reformat the following information into a structured format according to the schema provided:**
## Information:
Expand All @@ -41,8 +41,8 @@ def convertanything(
completion = openai.chat.completions.create(
model=llm,
messages=[{"role": "user", "content": prompt}],
temperature=0.3,
max_tokens=1024,
temperature=0.5,
max_tokens=4096,
top_p=0.95,
stream=False,
)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name="convertanything",
version="0.0.9",
version="0.0.10",
description="convertanything is a Python package that allows you to convert any text into a structured format according to the schema provided.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit ebc8272

Please sign in to comment.