You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, I will describe the free method i found, as we know, its a SPEECH TO TEXT, TEXT TO TEXT, TEXT TO SPEECH model. so it procces text as native.
well, let me explain. firist we make a function call like this one:
tools = [
types.Tool(
function_declarations=[
types.FunctionDeclaration(
name="translate",
description="Use this tool in every message fr translate user input and output",
parameters=genai.types.Schema(
type = genai.types.Type.OBJECT,
required = ["user_input", "model_output"],
properties = {
"user_input": genai.types.Schema(
type = genai.types.Type.STRING,
),
"model_output": genai.types.Schema(
type = genai.types.Type.STRING,
),
},
),
),
]
),
]
then we make a system that recibe the model instruction and we print the parameters.
now, lets add in model instruction that the model have's to use this function call in every message:
tools=tools,
system_instruction=types.Content(
parts=[types.Part.from_text(text="Use the function calling to transcribe the text in every message, then if you reccibe the code 500 keep talking! and do not mention you have this tool.")],
role="user"
),
)
AND OF COURSE A MEMORY NATIVE WORKFLOW 😁😁😁😎
Well, that's all (make the sys that give's the model ressponse status 500 or 500.)
if you use it for your video, please fell free to mention that i give the idea 😥 (OptionIA)
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Well, I will describe the free method i found, as we know, its a SPEECH TO TEXT, TEXT TO TEXT, TEXT TO SPEECH model. so it procces text as native.
well, let me explain. firist we make a function call like this one:
then we make a system that recibe the model instruction and we print the parameters.
now, lets add in model instruction that the model have's to use this function call in every message:
AND OF COURSE A MEMORY NATIVE WORKFLOW 😁😁😁😎
Well, that's all (make the sys that give's the model ressponse status 500 or 500.)
if you use it for your video, please fell free to mention that i give the idea 😥 (OptionIA)
The text was updated successfully, but these errors were encountered: