Skip to content

Instantly share code, notes, and snippets.

View oliveirarennan's full-sized avatar

Rennan Neves de Oliveira oliveirarennan

View GitHub Profile
from langchain_ollama.chat_models import ChatOllama
from langchain_core.prompts import ChatPromptTemplate
llm = ChatOllama(
model="llama3",
temperature=0
)
def ai_generate_char(context="O nomes precisam fazer sentido em um mundo pós apocaliptico, nomes devem ser tipicamente em portugues do Brasil", temperature=0):
llm.temperature = temperature
@oliveirarennan
oliveirarennan / hello.js
Last active May 3, 2023 19:57
Teste do Gist
function hello(name){
console.log(name)
}
hello('my name')
@oliveirarennan
oliveirarennan / simple-react-context
Created September 10, 2022 21:27
React Context Simple Example
import { createContext, useContext, useState } from 'react'
const CycleContext = createContext({} as any)
function NewCycleForm() {
const { activeCycle, setActiveCycle } = useContext(CycleContext)
return (
<h1>
NewCycleForm: {activeCycle}
@oliveirarennan
oliveirarennan / package.json
Created May 27, 2021 14:53
desafio_1_capitulo3_package.json
{
"name": "criando-um-projeto-do-zero",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"test": "jest --watchAll",
"coverage": "jest --coverage"