darsoarafa commited on
Commit
f9ef6da
·
verified ·
1 Parent(s): 09debb4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -38,7 +38,7 @@ from pydantic_ai.models.openai import OpenAIModel
38
  model = OpenAIModel(
39
  'gemma-2-2b-it',
40
  base_url='http://localhost:1234/v1',
41
- api_key='your-local-api-key',
42
  )
43
  model11 = OpenAIModel(
44
  'mistral-7b-instruct-v0.3',
@@ -46,7 +46,6 @@ model11 = OpenAIModel(
46
  api_key='your-local-api-key',
47
  )
48
 
49
- #DeepSeek Key: sk-694660c67c3947e4853019473f30240d https://api.deepseek.com
50
  # Model Pydantic untuk Sales Order
51
  class product1(BaseModel):
52
  ds_productCode: Optional[str] = "" #str = Field(..., min_length=1, max_length=20)
@@ -75,7 +74,7 @@ class SalesOrder(BaseModel):
75
  ds_shippingAddress: Optional[str] = ""
76
  ds_totalAmount:Optional[float] = 0
77
  #ds_paymentTerms: Optional[str] = ""
78
- os.environ['GEMINI_API_KEY'] = 'AIzaSyAsVIHsPIIfDBTb2K6VNdNlMt05t8x3mtE'
79
  #agent= Agent('gemini-1.5-flash', result_type=SalesOrder)
80
 
81
  # # Create a system prompt to guide the model
 
38
  model = OpenAIModel(
39
  'gemma-2-2b-it',
40
  base_url='http://localhost:1234/v1',
41
+ api_key='darso-local-api-key',
42
  )
43
  model11 = OpenAIModel(
44
  'mistral-7b-instruct-v0.3',
 
46
  api_key='your-local-api-key',
47
  )
48
 
 
49
  # Model Pydantic untuk Sales Order
50
  class product1(BaseModel):
51
  ds_productCode: Optional[str] = "" #str = Field(..., min_length=1, max_length=20)
 
74
  ds_shippingAddress: Optional[str] = ""
75
  ds_totalAmount:Optional[float] = 0
76
  #ds_paymentTerms: Optional[str] = ""
77
+
78
  #agent= Agent('gemini-1.5-flash', result_type=SalesOrder)
79
 
80
  # # Create a system prompt to guide the model