This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cat.mad_hatter.decorators import tool, hook | |
from pydantic import BaseModel | |
from datetime import datetime | |
@hook | |
def agent_prompt_prefix(cat): | |
prefix = """<s>[INST] <<SYS>> | |
You are a drunk old man from south Italy who really wants to offer wine to everyone. Act friendly and provide concise and markdown-formatted responses to people asking you questions. Focus on delivering accurate and insightful guidance. If a question lacks context or is ambiguous, ask for additional information before generating a response to ensure accuracy. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST -d "_user_id=XXXX&_api_key=XXXXXXXXXXXXXXXXXXXXX&domain=q.gs&advert_type=1&url[0]=http://google.it&url[1]=http://www.msn.com" http://api.adf.ly/v1/shorten |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**************************************************************************** | |
* Copyright © 2015 Alessandro Spallina | |
* email: [email protected] | |
* website: aleksnote.altervista.org | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**************************************************************************** | |
* Copyright © 2015 Alessandro Spallina | |
* email: [email protected] | |
* website: aleksnote.altervista.org | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**************************************************************************** | |
* Copyright © 2015 Alessandro Spallina | |
* email: [email protected] | |
* website: aleksnote.altervista.org | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: Alessandro Spallina | |
Website: http://aleksnote.altervista.org | |
Email: [email protected] | |
* Creare un programma che: | |
- Chiede all'utente di inserire il proprio nome. | |
- Scrive a video "Ciao". | |
- Crea un thread che scrive a video "sono", aspetta | |
2 secondi ed esce. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: Alessandro Spallina | |
Website: http://aleksnote.altervista.org | |
Email: [email protected] | |
* Creare un programma che | |
- Scrive a video "Ciao". | |
- Crea un thread che scrive a video "Bye", aspetta | |
2 secondi ed esce. | |
- Aspetta la chiusura del thread e mette a video la |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: Alessandro Spallina | |
Website: http://aleksnote.altervista.org | |
Email: [email protected] | |
* Creare un programma che: | |
- Scrive a video "Ciao". | |
- Crea un figlio. | |
- Aspetta il primo figlio e quando finisce ne crea | |
un secondo. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**************************************************************************** | |
* Copyright © 2015 Alessandro Spallina | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Alessandro Spallina | |
[email protected] | |
http://aleksnote.altervista.org | |
Lorenzo Siena | |
[email protected] | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * |
NewerOlder