Skip to content

Commit

Permalink
api keys
Browse files Browse the repository at this point in the history
  • Loading branch information
SermetPekin committed Aug 7, 2024
1 parent dd7cc4f commit 8d2082d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ prompt = '''
result, notes = chat(prompt, test=False)
print(result)
```
## Defining Api Keys ( .env file )

```bash
# .env file content

OPENAI_API_KEY = "sk-proj-ABCDEFGIJKLMNOPQRSTUXVZ"
EVDS_API_KEY=ABCDEFGIJKLMNOP

```



## New in this version
Expand Down
6 changes: 5 additions & 1 deletion evdschat/core/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ def chat_console():
result, notes = chat(prompt=args.prompt, debug=args.debug, test=args.test)
print(result)
print(notes)
result.to_excel(f"{args.file_name}.xlsx")
def correct(x:str):
if x.endswith('.xlsx') : return x
return f'{x}.xlsx'

result.to_excel(f"{correct(args.file_name)}")


if __name__ == "__main__":
Expand Down

0 comments on commit 8d2082d

Please sign in to comment.