Skip to content

saltukozelgul/chatbot-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iOS Developer Case - Chatbot & Image Generation

Project Description

This project is designed to develop an iOS application that allows users to engage in text-based conversations and generate simple images based on specific commands. It also includes features to retain chat history and enable users to open multiple chat tabs.

Used Libraries

The main libraries used in this project are:

  • Alamofire: An HTTP client library used for making data requests and handling responses.
  • Kingfisher: A lightweight and pure-Swift library for downloading and caching images from the web.

You can install the libraries with the following commands:

OpenAI API Key

To use the OpenAI API in this project, you'll need to store your API key securely. Follow these steps:

  1. Create a `.env` file at the root of your project.
  2. In the `.env` file, store your OpenAI API key in the following format:
    OPENAI_API_KEY=your-api-key
  3. Make sure to add the `.env` file to your project's `.gitignore` to keep your API key secret and not push it to your version control system.

Application Previews

Below are the working previews of the application:

Home Page

Home Page Home Page

Chat Screen

Chat Screen Chat Screen Chat Screen

Chatbot Functionality

This application is designed to develop a text-based chatbot using the OpenAI API. The chatbot can engage in natural language conversations and generate responses.

Image Generation Capability

The application has the capability to generate simple images based on specific commands. For example, when it receives the command "Draw a cat," the application should generate an image of a cat.

Chat History Retention

This application allows users to retain past conversations, enabling them to access their chat history at a later time.

Multiple Chat Tabs

The application enables users to open multiple chat tabs and have independent conversations.

Getting Started

After downloading the project files, you can run the project by following these steps:

  1. Clone or download the project to your computer.
  2. Open the project in Xcode or your preferred IDE.
  3. Run the application on an iOS device or simulator.

Contribution

This project is open-source and open to contributions. Feel free to share your issues or contributions on GitHub.


For launching the project and further information, please refer to this README. If you have any questions or feedback, don't hesitate to get in touch.

Happy coding!

About

A chatbot app for study case

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages