Skip to content

Instantly share code, notes, and snippets.

View hasnocool's full-sized avatar
😶‍🌫️
Whats Happening?

hasnocool

😶‍🌫️
Whats Happening?
View GitHub Profile
@hasnocool
hasnocool / routes.py
Last active May 20, 2024 20:07
Flask Routes For Ollama API
from flask import Flask, request, jsonify
app = Flask(__name__)
# Placeholder functions to interact with models
generate_completion_from_model = lambda model, prompt, images, options: ...
generate_chat_completion_from_model = lambda model, messages, options: ...
create_model_from_modelfile = lambda name, modelfile: ...
list_local_models = lambda: ...
get_model_info = lambda name: ...
published: true
@hasnocool
hasnocool / blog.md
Last active September 4, 2023 21:23

So, you might be asking yourself, what is GistLog?

GistLog is a blogging "platform" for people who want to quickly write and publish content, in Markdown, and don't want to bother with yet another platform and yet another login and yet another group hoarding their content. With GistLog, you use your pre-existing GitHub login, you store the data in your own GitHub account, and you can publish with a single click.

Using GistLog

  1. Create a public gist with a single file using Markdown. Set the gist description to be the title of your blog post
  2. Copy the gist URL, and paste it into the text box on the GistLog create page
  3. Copy your resulting URL and share it as your blog post—note that it will be in the form of https://gistlog.co/your-github-username/gist-id
  4. If you want to have your own GistLog landing page (e.g. gistlog.co/mattstauffer), [read all about it](https://gistlog.co/mattstauffer/a82db5